fexpress Posted December 26, 2012 Share Posted December 26, 2012 Hello I'm using PrestaShop for selling tickets, and I'm using reference as a date. I want products to be printed ordered by date(reference) on both category.php and manufacturer.php pages but I can't figure out how to do it. Thank you! Link to comment Share on other sites More sharing options...
fexpress Posted December 27, 2012 Author Share Posted December 27, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now