6 replies [Last post]
psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Was this information Helpful?

Is there yet a way to order the listing of products displayed in multiple categories?

psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Re: Product List Order in Multiple Categories

I've just come across a possible solution to this: nodeorder.

psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Re: Re: Product List Order in Multiple Categories

I've implemented nodeorder with views and it's working extremely well. The pure simplicity of ordering products by drag and drop is something my client is going to love.

For anyone looking for node ordering per category I would recommend nodeorder + views + custom breadcrumbs. Here are a couple of tips you could try to get you started:

  1. Set custom breadcrumbs's module weight to 100 (a lower figure could work but 100 worked first time for me), use moduleweight or do an UPDATE on the database
  2. Use nodeorder/term as your views URL
  3. Use 'Taxonomy: Term ID' as your views URL argument
  4. Use 'Nodeorder: weight_in_tid' as your Sort Criteria
  5. Create a menu using nodeorder/term/[tid] as the URLs
  6. Edit the Products vocabulary and turn on Ordering
  7. Create a custom breadcrumb. I used the following:
    Titles:
    Products
    [term]
    Paths:
    nodeorder/term
    nodeorder/term/[term-id]

To change the ordering of nodes go to your taxonomy term list and there is an 'order nodes' tab. There are some settings in Administer >> Site configuration >> Nodeorder where you can set the basic options. I only have 'Only show titles when ordering nodes' checked since the links to the ordering don't work on views pages.

I think that about covers the major points and the rest should be self-explanatory, if not just ask.

Please note that this method will only list the top taxonomy term in the breadcrumb. For what we need I think it's actually preferable to have it it this way.

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: Re: Product List Order in Multiple Categories

Thanks for posting the answer. I have just started using Ubercart and that is one piece of functionality that I wanted to implement.

<tr>.
psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Re: Re: Re: Re: Product List Order in Multiple Categories

No worries. I'm glad it helped you.

zareen's picture
Offline
Joined: 01/20/2008
Juice: 81
couldn't figure it out

I wasn't able to succeed at doing this. Am I going to have to manually build my menu? Would appreciate some more instruction as we need to order products in all our sites.

Here's the one I'm working on now: www.peaceworkspubs.com

Here's some of my categories, but they don' t seem to be generating from the menu.
http://peaceworkspubs.com/nodeorder/term/1
http://peaceworkspubs.com/nodeorder/term/5

The code: nodeorder/term/[tid] just generates
http://peaceworkspubs.com/nodeorder/term/%5Btid%5D for me.

Is there someone who can help me with this? My guess is that I don't have everything set right in the view. Maybe if you could be more detailed with that.

Connie

psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Hi Connie, I ended up using

Hi Connie,

I ended up using nodequeue in the end as nodeorder was very buggy at the time and didn't allow ordering of nodes per category i.e. ordering of nodes in one category changed their order in other categories relative to items in that category.

To get the system setup how we needed it we created one nodequeue for each category, used some SQL statements to move nodes into each nodequeue and then used an argument of NodeQueue: Queue ID in views with an option of %1 to show the title for each category shown.