Forums / Customization from the Admin / Products do not display in sort order I want

Products do not display in sort order I want

Locked

Views: 2,629

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
10 Aug 2009, 6:10 PM
#1
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Products do not display in sort order I want

This is weird.
I usually do not set sort order for products in a category, just leave the default of 0 and let them sort alphabetically.
For a certain cat I need to display in a different sort order, so I start sorting them with intervals of 5: 0, 5, 10, etc.
They display OK in the admin side, and also when I go into the category listing I see products displayed according to sort order, not alphabetically.
But...when I started displaying the first product in the browser and go next, next, they display alphabetically!
The admin is set to
Categories/Product Display Order: Products Sort Order, Products Name
There is no other valid option.
I think I need to modify a certain file in the Admin, to eliminate ", Products Name".
I did look at it with different browsers, restarted comp. to eliminate possibility of something in cache messing it up.

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

10 Aug 2009, 6:32 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Products do not display in sort order I want

See "Similar Threads" below.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Aug 2009, 6:57 PM
#3
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Products do not display in sort order I want

DrByte:

See "Similar Threads" below.
OK, I looked.
I see that this is possible site-wide by modifying includes\index_filters\default_filter.php
This is not what I need, I just need to display a certain category according to its sort order.
It does this OK in the admin side and also when looking at the product listing.
As I said before, it doesn't work when going prev - next in the cat.
I suppose this "iterates through an array", to use programmer's jargon.
Does Zen Cart have the ability to display products according to sort order, only for a selected category?

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

10 Aug 2009, 7:11 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Products do not display in sort order I want

It is well-known that (in v1.x) the previous/next uses a different sort order than what the user selects in the product listing.
There are some admin settings that control the prev/next sort order.
All the functionality applies to the entire store universally.

What you've experienced is the way it's written. If you want to change it, whether universally, or for just one category, feel free to alter the code accordingly.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Aug 2009, 8:05 PM
#5
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Products do not display in sort order I want

DrByte:

There are some admin settings that control the prev/next sort order.
Which admin settings, please?
Thanks.

If it is Configuration -> Layout Settings -> **Categories/Products Display Sort Order
**I have already been there.
Unfortunately, it is not what I am looking for.

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

11 Aug 2009, 3:56 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Products do not display in sort order I want

Configuration ... Product Info ...

Previous Next - Sort Order
Products Display Order by
0= Product ID
1= Product Name
2= Model
3= Price, Product Name
4= Price, Model
5= Product Name, Model
6= Product Sort Order

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Aug 2009, 11:35 PM
#7
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Products do not display in sort order I want

Ajeh:

Configuration ... Product Info ...
YES!
#6 is exactly what I need because cats. that do have a sort order (for special reasons) will display in that previous - next order, whereas cats. that don't simply display alphabetically.
The archer hit the target.
Thanks.

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

12 Aug 2009, 4:06 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Products do not display in sort order I want

Thanks for the update that this Sort Order was able to work for you ... we do aim to please ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!