flederflick Posted January 15, 2014 Share Posted January 15, 2014 (edited) hello everybody, I'm new at prestashop. 1.5.6.1 is the first version of PrestaShop i've ever worked with. After installing it and adding some products, categories and subcategories i ran into to following problem. When a category has more the 10 products, the pages (default) limits the viewed products to 10 and gives the ability to click on a page number or on a previous or next button. When i use the next or previous buttons every thing works fine. When i want to use the numbers i return to the home page. Generated URL when clicking Next button: (works fine) http://example.com/PrestaShop/index.php?id_category=23&controller=category&p=2 Generated URL when clicking page number: (doesn`t work) http://example.com/PrestaShop/index.php?id_category=23&controller=category&p=2 I'm quite certain the problem is the & in the url. I don't know where to change this. Any ideas. Best regards, Sidney Edited January 16, 2014 by flederflick (see edit history) Link to comment Share on other sites More sharing options...
flederflick Posted January 16, 2014 Author Share Posted January 16, 2014 Oke. After some debugging i found the problem in the themes/default/mobile/pagination.tpl file. In line 62 i have changed href="{$link->goPage($requestPage, 1)|escape:'html'}" into href="{$link->goPage($requestPage, 1)}" In line 69 in changed href="{$link->goPage($requestPage, $smarty.section.pagination.index)|escape:'html'}" Into href="{$link->goPage($requestPage, $smarty.section.pagination.index)}" And last but not least in line 74 href="{$link->goPage($requestPage, $pages_nb)|escape:'html'}" Changed into href="{$link->goPage($requestPage, $pages_nb)}" Link to comment Share on other sites More sharing options...
Scully Posted September 3, 2014 Share Posted September 3, 2014 Thanks for sharing. I just determined the same problem and fixed it quickly with your help. br, Scully. Link to comment Share on other sites More sharing options...
Recommended Posts