Forums / Templates, Stylesheets, Page Layout / How to change the sorting of the all products listing?

How to change the sorting of the all products listing?

Locked

Started by gibsons on 21 Oct 2006, 4:21 PM · Views: 1,853

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
21 Oct 2006, 4:21 PM
#1
gibsons avatar

gibsons

New Zenner

Join Date:
Oct 2006
Posts:
16
Plugin Contributions:
0

How to change the sorting of the all products listing?

I'd like to be able to control how the products are ordered in both the all products listing and the featured products listing. Any idea how? Sorting them arbitarily would be great, but having them sorted by category would also work (books before posters before ebooks, etc...that's what I am after).

The best in new and original science fiction and fantasy novels
www.kingtigerbooks.com

21 Oct 2006, 6:04 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: How to change the sorting of the all products listing?

You could customize this so use the master_categories_id if you do not use Linked Products, or a more difficult sort would be to include the categories_description table via the products_to_categories relationship ...

This could get complicated on the Sort Order dropdown depending on what you want that to do, if anything, once the customer sets their own 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!

23 Oct 2006, 12:14 AM
#3
gibsons avatar

gibsons

New Zenner

Join Date:
Oct 2006
Posts:
16
Plugin Contributions:
0

Re: How to change the sorting of the all products listing?

Thanks for the quick reply. I can see what the master category id is for each product, but how do I sort by it? As for the dropdown, I don't have a ton of products so removing it from the page should be fine.

Sorting via the category description seems interesting, but perhaps overkill. Where is that code? Where do I modify stuff like that?

Thanks again!

The best in new and original science fiction and fantasy novels
www.kingtigerbooks.com

23 Oct 2006, 10:32 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,891
Plugin Contributions:
20

Re: How to change the sorting of the all products listing?

If you don't have "a ton of products", how's about changing the product sort order and changing Admin -> Configuration -> All Listing -> Display Product Display to 8? Same with Featured Listing.

You could reserve product sort orders for books(Novels?) in the 100 - 199 range, posters to the 200 - 299, and eBoks to 300 - 399. Even if you had no posters, everything would be by the order you want and, when you added posters, they would "slide" right in where you want them.

Just my 1.3786 cents worth (inflation, don't ya know):D

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

31 Oct 2006, 6:11 PM
#5
gibsons avatar

gibsons

New Zenner

Join Date:
Oct 2006
Posts:
16
Plugin Contributions:
0

Re: How to change the sorting of the all products listing?

Thanks. I will give it a shot.

The best in new and original science fiction and fantasy novels
www.kingtigerbooks.com