Jump to content

Product Sorting - Product List page


Recommended Posts

I solved it myself - CategoryController.php and ManufacturerController.php

 

 

 $nbProducts = $this->category->getProducts(NULL, NULL, NULL, $this->orderBy, $this->orderWay, true);
 $this->pagination((int)$nbProducts);
 self::$smarty->assign('nb_products', (int)$nbProducts);
 $cat_products = $this->category->getProducts((int)(self::$cookie->id_lang), (int)($this->p), (int)($this->n), $this->orderBy, $this->orderWay);

 

change to

 

 $nbProducts = $this->category->getProducts(NULL, NULL, NULL, 'reference', 'ASC', true);
 $this->pagination((int)$nbProducts);
 self::$smarty->assign('nb_products', (int)$nbProducts);
 $cat_products = $this->category->getProducts((int)(self::$cookie->id_lang), (int)($this->p), (int)($this->n), 'reference', 'ASC');

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...