Display latest products in category page.
Posted: Tue Nov 29, 2016 7:56 pm
Hi folks,
I wanted to change the order the products are displayed on the category page.
I read a post where it says you have to change:
catalog/controller/product/category.php.
Replace $sort = 'p.sort_order'; with $sort = 'p.date_added'; and so on.
Here is the post:
viewtopic.php?f=20&t=100340
It's from 2013 so maybe it isn't working with Opencart 2.3 (what I use).
When I make all the changes, it does nothing.
Can someone tell me how to change the default order in which products are displayed on the category page to newest first?
Thanks a lot!
I wanted to change the order the products are displayed on the category page.
I read a post where it says you have to change:
catalog/controller/product/category.php.
Replace $sort = 'p.sort_order'; with $sort = 'p.date_added'; and so on.
Here is the post:
viewtopic.php?f=20&t=100340
It's from 2013 so maybe it isn't working with Opencart 2.3 (what I use).
When I make all the changes, it does nothing.
Can someone tell me how to change the default order in which products are displayed on the category page to newest first?
Thanks a lot!