sheraz4pro Posted May 17, 2013 Share Posted May 17, 2013 Hi everybody, i am working on a project and i have to display products Which are new Which are recently viewed by user. Both these listing will have their own pagination. I have done the listing but the pagination is not working correctly. clicking on page 2 or 3 moves to 2 or 3rd page of both listings. I want to display the pagination independent of each other. Can somebody guide me how i can do this.?? I have also attach screen shot. please look it for better understanding. Link to comment Share on other sites More sharing options...
sheraz4pro Posted May 18, 2013 Author Share Posted May 18, 2013 is there any one who can tell me how to display multiple pagination in multiple product listings??? Link to comment Share on other sites More sharing options...
SmartDataSoft Posted May 18, 2013 Share Posted May 18, 2013 hello, it seemed that you want to show to paggination in a single page. if you want to do that than you have to pass two different query string value that , and edit your controller and get the query string value and distingues which value is for pagination and than it will work Link to comment Share on other sites More sharing options...
sheraz4pro Posted May 21, 2013 Author Share Posted May 21, 2013 Thanks for your help. i am unable to understand that how to customize th pagination URL. In pagination.tpl, it is call $link->goVPage($requestPage, 2) function. AND in goPage() function public function goPage($url, $p) { return $url.($p == 1 ? '' : (!strstr($url, '?') ? '?' : '&').'p='.(int)$p); } pleas guide me how to customize the query string, in which file I have to do changes. Link to comment Share on other sites More sharing options...
SmartDataSoft Posted May 21, 2013 Share Posted May 21, 2013 hello,sheraz4pro do you have the site url so that i can take a look and suggest you, my suggestion is to not to do the bellow pagination by prestashop core file edit. you can show all product from latest view and made the pagination by jquery. and show that. in this case it will better for your to manage code in ui level and in next version you don't have to update your edited file. Link to comment Share on other sites More sharing options...
Recommended Posts