Jump to content

pagination prestashop customization


Recommended Posts

First of all, if you want to achieve the 'view all' thing, you will need to edit the core pagination method of the FrontController (do you know php?)

 

As the rest, it can be easily achieved by using the variables $p and $page_nb to show off the current page and total number respectively. With these, you can remove the section loop

 

 {section name=pagination start=$start loop=$stop+1 step=1}
  {if $p == $smarty.section.pagination.index}
   <li class="current"><span>{$p|escape:'htmlall':'UTF-8'}</span></li>
  {else}
   <li><a {$no_follow_text} href="{$link->goPage($requestPage, $smarty.section.pagination.index)}">{$smarty.section.pagination.index|escape:'htmlall':'UTF-8'}</a></li>
  {/if}
 {/section}

 

In pagination.tpl,that shows every page, and the redundant dots added when pages are too many. SImply add 'Page {$p} of {$pages_nb}'

 

Then, of course, add the &lt and &gt signs instead of the texts 'previous' and 'next'

Link to comment
Share on other sites

×
×
  • Create New...