{assign var=category_current_page value={$smarty.get.category_page|default:1}}

Pagination

Categories

{loop name="cat" type="category" page="{$category_current_page}" limit="2"}

#LOOP_COUNT - #TITLE

Products :

{assign var=this_product_getter value="product_`$ID`_page"} {assign var=product_current_page value={$smarty.get.$this_product_getter|default:1}}

#TITLE page choice

{pageloop rel="prod"} {if ${PAGE} != {$product_current_page}} #PAGE {else} { #PAGE } {/if} {if {$PAGE} != {$LAST}} - {/if} {/pageloop} {/loop}

categories page choice

{pageloop rel="cat"} {if ${PAGE} != {$category_current_page}} #PAGE {else} { #PAGE } {/if} {if {$PAGE} != {$LAST}} - {/if} {/pageloop}
Pagination before loop
{assign var=product_current_page value={$smarty.get.$this_product_getter|default:1}} {capture name="prod2"} {loop name="prod2" type="product" page="{$product_current_page}" limit="2"}
  • #ID:#REF
  • {/loop} {/capture} {pageloop rel="prod2"} {if ${PAGE} != {$product_current_page}} #PAGE {else} { #PAGE } {/if} {if {$PAGE} != {$LAST}} - {/if} {/pageloop} {$smarty.capture.prod2} {pageloop rel="prod2"} {if ${PAGE} != {$product_current_page}} #PAGE {else} { #PAGE } {/if} {if {$PAGE} != {$LAST}} - {/if} {/pageloop}