Zen Cart Logo
Forums / Basic Configuration / Product Sort Order - Can I prioritize?

Product Sort Order - Can I prioritize?

Locked

Views: 1,234

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
14 Jun 2010, 4:42 PM
#1
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Product Sort Order - Can I prioritize?

Hi All,

I've been working on a fresh install of ZC for weeks now, still not live yet. Yesterday I upgraded to 139d.

It took me a while to figure out how to sort my products by price (low to high), longer to realize I needed to go to Admin> Tools> Store Manager and run the Update ALL Products Price Sorter.

But now my site is correctly sorting by price. :clap:
**
MY QUESTION:**
Can I cause my Default Sort Order (price low to high, described above) to be superseded by a manually added Sort Order # assigned directly to a product?

For example, under my category Bassinets:
Listing 1. Mattress Pad - $30 (Sort Order = 40)
Listing 2. Basket - $80 (Sort Order = 50)
Listing 3. Plain Bassinet - $700 (Sort Order = 0)
Listing 4. Bassinet w/ Drawer - $800 (Sort Order = 0)
Listing 5. Bassinet w/ Drawer & Cabinet - $900 (Sort Order = 0)

This is correctly sorted by the Default I created. However, in this particular instance I want the Bassinets to appear first, accessories last. So I went into the Pad and Basket products and manually added Sort Order #s of 40 and 50 (all other products seem to have defaulted to 0).

It was my hope that doing this would override the price default and send the accessories to the bottom... but it did not!

I updated ALL Products Price Sorter. And I cleared my cache and restarted my browser.

Didn't work!

Any ideas?

14 Jun 2010, 7:36 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Product Sort Order - Can I prioritize?

This is correctly sorted by the Default I created. However, in this particular instance I want the Bassinets to appear first, accessories last. So I went into the Pad and Basket products and manually added Sort Order #s of 40 and 50 (all other products seem to have defaulted to 0).
Depending on if this is to be different than all the rest???
This is what is provided by default without custom codeing

admin > config > layout settings > Categories/Products Display Sort Order

Categories/Products Display Sort Order
Categories/Products Display Sort Order
0= Categories/Products Sort Order/Name
1= Categories/Products Name
2= Products Model
3= Products Qty+, Products Name
4= Products Qty-, Products Name
5= Products Price+, Products Name
6= Products Price-, Products Name
15 Jun 2010, 5:16 PM
#3
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Product Sort Order - Can I prioritize?

Hi Kobra,

Thanks for the reply. My site is set to:
#6 = Products Price-, Products Name

What I am asking is:
Why does manually inserting a SORT ORDER NUMBER into the product itself NOT override the #6 choice above?

In other words, for thousands of my products, choice #6 above is just fine. But occasionally I wish to MANUALLY assert control over the way things are sorted.

How hard would it be to add a choice to that list:
#7 = SORT ORDER #, Products Price-, Products Name

15 Jun 2010, 6:15 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Product Sort Order - Can I prioritize?

Feznizzle:

How hard would it be to add a choice to that list:
#7 = SORT ORDER #, Products Price-, Products Name
Sans the price - that is what selection "0" does

0= Categories/Products Sort Order/Name
20 Jun 2010, 1:24 AM
#5
kes99 avatar

kes99

New Zenner

Join Date:
May 2009
Posts:
42
Plugin Contributions:
0

Re: Product Sort Order - Can I prioritize?

kobra:

Sans the price - that is what selection "0" does

0= Categories/Products Sort Order/Name


That doesn't work.......read what Feznizzle wants. A standard default sort order of price (low to high) which would be code 5 in admin > config > layout settings > Categories/Products Display Sort Order BUT an OVERRIDE for a product(s) to be placed in a different order detirmined by the products sort order. Exactly as he stated:

SORT ORDER, Products Price,

unless you can answer a problem correctly don't bother answering at all...it only leads to more confusion.....
20 Jun 2010, 4:14 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Sort Order - Can I prioritize?

You could customize the Sort Order method used in the:
/includes/index_filters/default_filter.php

Look for the line:

// if set to nothing use products_sort_order and PRODUCTS_LIST_NAME is off

and you can alter each of the case statements below it include:
p.products_sort_order

and see if that doesn't help the display of your products ...

Note: this is used also for searches and can produce some odd displays on those ...

Note: backup the original file before making changes, in case you goober it all up ... :cool:

25 Jun 2010, 7:41 PM
#7
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Product Sort Order - Can I prioritize?

Hi!

Thanks to all for the feedback.

I got forced into taking a break shortly after I posted the question, plan to resume full force this weekend. I will fiddle with this issue and, worst come to worst, will try Ajeh suggestion. Was hoping not to have to play with code! :no:

Anyway, I will post the answer as soon as I figure it out.

Thanks,
Mike