Hello, I wish to arrange products by most quantity to last on the Manufacturer/Brand page. This way all products with 0 quantity will be at the bottom.
I have modified the category pages to act this way by using this code:
if (isset($this->request->get[‘sort’])) {
$sort = $this->request->get[‘sort’];
} else {
// $sort = ‘pd.name’; $sort = ‘quantity’; // changed to quantity so product w/stock sorted to top
}
if (isset($this->request->get['order'])) {
$order = $this->request->get['order'];
} else {
$order = 'DESC'; // changed to DESC so product w/stock sorted to top
}
However editing the manufacturer.php like the above does not work.
Can you shed some light as to how this can be accomplished?
Thank you.
|
|
Hi will500!
Try to use
$sort = ‘p.quantity’;
Regards, ThemeBurn team
|
|