diff --git a/templates/smarty-sample/pagination.html b/templates/smarty-sample/pagination.html
index 5a5182177..cb06db66b 100755
--- a/templates/smarty-sample/pagination.html
+++ b/templates/smarty-sample/pagination.html
@@ -19,7 +19,7 @@
{loop name="prod" type="product" category="#ID" page="{$product_current_page}" limit="2"}
-
- #REF
+ #ID:#REF
{/loop}
@@ -52,4 +52,43 @@
{if {$PAGE} != {$LAST}}
-
{/if}
-{/pageloop}
\ No newline at end of file
+{/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}
+
+