Post by BriteLightLEDs2014 » Tue May 19, 2015 9:52 pm

i am looking to change the default sort to " price highest first " which file and line of text do i need to look at?

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Post by PeteA » Tue May 19, 2015 11:41 pm

I'd suggest writing a VQMod rather than hacking the core. Either way you need to look at catalog/controller/product/category.php and change line 21 from:

Code: Select all

$sort = 'p.sort_order';
to

Code: Select all

$sort = 'p.price';
and line 27 from:

Code: Select all

$order = 'ASC';
to

Code: Select all

$order = 'DESC';

New member

Posts

Joined
Wed Jul 30, 2014 5:46 pm
Who is online

Users browsing this forum: No registered users and 28 guests