Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / How to let products display sort by product id?

How to let products display sort by product id?

Started by yisou on 2 May 2016, 11:05 PM · Views: 640

Results 1 to 4 of 4
2 May 2016, 11:05 PM
#1
yisou avatar

yisou

New Zenner

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

How to let products display sort by product id?

I have added several products under category of "Plastic Glasses". When I got to "Categories / Products - Plastic Glasses", I found all products under this category sorted from a to z. How to products display sort by product id, please? Thank.

3 May 2016, 1:31 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to let products display sort by product id?

Are you sure you want to use the products_id (requiring custom code) instead of the sort order (built in)?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

3 May 2016, 2:21 PM
#4
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: How to let products display sort by product id?

i believe the product sorter has a sort based on date added. in theory, the product_id should mimic the date added sort.

if using that sort does not work for your needs, let us know. also, if you want the default to be the date added, the change should not be too difficult.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.