Page 2 of 2

Re: [HOW TO] Change Default Product Sort Order

Posted: Sat Jun 13, 2015 3:26 am
by leandromello
How to do this in OC. 2.0.3.1?
How to sort by quantity?

Re: [HOW TO] Change Default Product Sort Order

Posted: Sat May 14, 2016 8:54 pm
by Troublemaker213
How can i do both things in one query or with multi queries, i mean Products will be sorted A to Z but, products that are out of stock will be listed at the end.

i think there should be easy way to make this happen :)

Re: [HOW TO] Change Default Product Sort Order

Posted: Sat Jul 30, 2016 7:30 am
by saliverdim
sort with product id list ? please help me ?

p.id or pd.id or product_id try alll but doesnt work :(

Re: [HOW TO] Change Default Product Sort Order

Posted: Fri Aug 12, 2016 2:59 am
by saliverdim
please help me ?

Re: [HOW TO] Change Default Product Sort Order

Posted: Mon Dec 12, 2016 2:49 pm
by mahsash
i did these:

catalog/controller/product/category.php

i changed:

if (isset($this->request->get['sort'])) {
$sort = $this->request->get['sort'];
} else {
$sort = 'p.stock_status_id';
}

in default when i refresh the page no action work just when i selected default choice i see this code "?sort=p.stock_status_id&order=DESC&limit=100" but not sort by stock_status_id yet!!
in which file i can define stock_status_id?


plz help me!

Re: [HOW TO] Change Default Product Sort Order

Posted: Mon Oct 16, 2017 1:56 pm
by paddys_1
There is an extension that changes the sort order so that the most recently added products are shown first.

Re: [HOW TO] Change Default Product Sort Order

Posted: Mon Feb 12, 2018 9:57 pm
by Arjano
Hello Experts
Hope anyone can help me.
I ám looking for the correct text to change my category.php file. front end
Category product layout sort must be for me on standard model number

Opnecart 3.02

thanks