Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How to sort product listings within a category

How to sort product listings within a category

Views: 1,374

Results 1 to 3 of 3
4 Nov 2017, 1:30 PM
#1
feznizzle avatar

feznizzle

Totally Zenned

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

How to sort product listings within a category

Hi,

Here is a category list on my site:
https://002mc.justmedical.biz/index.php?main_page=index&cPath=70

I want the products on that page listed by price, high to low.

I used the Developers Tool Kit Search in Configuration Settings/Keys to locate what I thought was probably going to work:
Layout Settings > Categories/Products Display Sort Order
5= Products Price+, Products Name

When that didn't work, I set every other possibility the same....
All Listing > Display Product Display - Default Sort Order
4= Price high to low, Products Name

Featured Listing > Display Product Display - Default Sort Order
4= Price high to low, Products Name

New Listing > Display Product Display - Default Sort Order
4= Price high to low, Products Name

Still, no dice! :(

I seem to recall doing this last time by putting in a number/letter combo somewhere... like 4a or something. Cannot flipping remember where/how to do that.

Any help would be appreciated!

4 Nov 2017, 2:05 PM
#2
feznizzle avatar

feznizzle

Totally Zenned

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

Re: How to sort product listings within a category

btw, all products have sort value of "0".

4 Nov 2017, 4:59 PM
#3
feznizzle avatar

feznizzle

Totally Zenned

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

Re: How to sort product listings within a category

FOUND IT!!!!

Admin > Cofiguration > Product Listing > Display Product Listing Default Sort Order

Once there, you have to reference the settings above. In my case, I assigned Price (Display Product Price/Add to Cart) as 4. Another thing you have to know is that a=ascending and d=descending.

So I put in: 4d

Worked!

+++++

I will now go permanently add a note to this menu item so I will be able to find these settings again.

Admin > Cofiguration > Product Listing
Admin > Cofiguration > Product Listing (Category Lists)

Why bother? Because I'm tired of guessing which listing I'm looking for:
Admin > Cofiguration > Product Listing
Admin > Cofiguration > All Listing
Admin > Cofiguration > Index Listing

Here is how I will change that (see the first section: Menu Clutter):
https://www.zen-cart.com/showthread.php?223069-Customizing-the-admin-itself&p=1337694#post1337694