adarsh Posted September 22, 2010 Share Posted September 22, 2010 i am using prestashop shopping cart , i want to list whole prodcts on category page without pagination, please help me........... Link to comment Share on other sites More sharing options...
rocky Posted September 22, 2010 Share Posted September 22, 2010 Change line 60 of category.php from: $cat_products = $category->getProducts(intval($cookie->id_lang), intval($p), intval($n), $orderBy, $orderWay); to: $cat_products = $category->getProducts(intval($cookie->id_lang), intval($p), /*intval($n)*/1000000, $orderBy, $orderWay); Change 1000000 to a number that is above the maximum number of products you have in a category. This will always get all the products in the category. Link to comment Share on other sites More sharing options...
StefanCP Posted December 14, 2010 Share Posted December 14, 2010 Howdy, how can I do the same with manufacturers? I have this in the manufacturer-list.tpl: {$manufacturer.nb_products|intval} {if $manufacturer.nb_products == 1}{l s='product'}{else}{l s='products'}{/if} Thank you Link to comment Share on other sites More sharing options...
rocky Posted December 19, 2010 Share Posted December 19, 2010 Change line 36 of supplier.php (in PrestaShop v1.3.3) from: 'products' => $object->getProducts($id, intval($cookie->id_lang), intval($p), intval($n), $orderBy, $orderWay), to: 'products' => $object->getProducts($id, intval($cookie->id_lang), intval($p), /*intval($n)*/1000000, $orderBy, $orderWay), Link to comment Share on other sites More sharing options...
StefanCP Posted December 20, 2010 Share Posted December 20, 2010 Howdy, I have done that, the code looks like this now: 'products' => $object->getProducts($id, intval($cookie->id_lang), intval($p), /*intval($n)*/1000000, $orderBy, $orderWay), but the page still shows pagination: http://100ml.ro/manufacturer.php Any chance I have done something wrong? Link to comment Share on other sites More sharing options...
rocky Posted December 20, 2010 Share Posted December 20, 2010 I can't think of why it isn't working. That code should override the default value of 10 with 100000, but your site is still displaying 10 products per page. Link to comment Share on other sites More sharing options...
StefanCP Posted December 20, 2010 Share Posted December 20, 2010 Thanks anyway for your time Link to comment Share on other sites More sharing options...
ricksterinps Posted February 8, 2011 Share Posted February 8, 2011 Change line 60 of category.php from: $cat_products = $category->getProducts(intval($cookie->id_lang), intval($p), intval($n), $orderBy, $orderWay); to: $cat_products = $category->getProducts(intval($cookie->id_lang), intval($p), /*intval($n)*/1000000, $orderBy, $orderWay); Change 1000000 to a number that is above the maximum number of products you have in a category. This will always get all the products in the category. --------This works great, but where do I remove the Previous 1,2,3 Next links and then the Products per Page links I'm sure it's in category.php, but I can't seem to find it. I'm using 1.3.6. THanks 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