How to arrange products by most quantity to last on the Manufacturer/Brand pages

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeHow to arrange products by most quantity to last on the Manufacturer/Brand pages

This topic has been marked as not a support question.

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.

November 16, 2011 at 7:30 pm #3614

Hi will500!

Try to use

$sort = ‘p.quantity’;

Regards, ThemeBurn team

November 28, 2011 at 10:47 am #3909
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.