Jump to content

Display multiple paginations on category Page


Recommended Posts

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.

post-344066-0-89342900-1368796879_thumb.png

Link to comment
Share on other sites

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

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

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

×
×
  • Create New...