Post by ndim_pro » Thu Aug 17, 2017 9:07 pm

My version is 2.3.0.2 with Journal theme installed.

I have been trying to change sort order in catalog/controller/product/category.php to "p.date_modified" but it does not seem to work properly. I refresh the cache in modifications after changes but nothing different comes up.

Any idea why this doesn't work?

User avatar
New member

Posts

Joined
Fri Nov 04, 2016 4:49 pm
Location - Thessaloniki, Greece

Post by DigitCart » Thu Aug 17, 2017 11:00 pm

Hi,
In controller you mentioned, change:

Code: Select all

$sort = 'p.sort_order';
to

Code: Select all

$sort = 'p.date_modified';
Then open this file:

Code: Select all

catalog\model\catalog\product.php
find:

Code: Select all

'p.date_added'
before it add:

Code: Select all

'p.date_modified',

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by khurrum » Wed Dec 19, 2018 3:02 pm

Thanks for the guidance. It is working but when we click on page 2, 3 and onwards, the sort order is changed again. Can you pls check. Thank you

Newbie

Posts

Joined
Wed Oct 23, 2013 10:36 pm
Who is online

Users browsing this forum: No registered users and 5 guests