LarsHolmgaard Posted November 5, 2013 Posted November 5, 2013 (edited) Hi, We're running an old 188.8.131.52 version of PrestaShop and I am trying to show more than only 9 products on the prices-drop.php page but I am having trouble with it. I have looked in to the classes/Product.php and prices-drop.php which contains this: <?php include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/header.php'); include(dirname(__FILE__).'/product-sort.php'); $nbProducts = Product::getPricesDrop(intval($cookie->id_lang), NULL, NULL, true); //include(dirname(__FILE__).'/pagination.php'); $category = new Category(9999); $smarty->assign(array( 'products' => Product::getPricesDrop(intval($cookie->id_lang), intval($p) - 1, intval($n), false, $orderBy, $orderWay), 'nbProducts' => $nbProducts, 'category' => $category )); $smarty->display(_PS_THEME_DIR_.'prices-drop.tpl'); include(dirname(__FILE__).'/footer.php'); ?> If I echo $nbProducts out it writes 144 which then puzzles me why only 9 shows on the page. And the pagination line is deactivated as you can see. It makes no difference if I turn on the line which includes pagination.php - no page buttons appear. And no more than 9 products on sale are shown. On the rest of the site, all products show in the categories on one page and no pagination is used. Any clues on how I show all products on sale and not just 9? Any feedback would be highly appreciated. Edited November 25, 2013 by LarsHolmgaard (see edit history) Share this post Link to post Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now