Last active
December 11, 2015 00:05
-
-
Save mghdotdev/3bd994d5f098c8848f1f to your computer and use it in GitHub Desktop.
MVT: All Products Offset Custom Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mvt:if expr="ISNULL g.Per_Page"> | |
<mvt:assign name="g.Per_Page" value="100" /> | |
</mvt:if> | |
<mvt:if expr="ISNULL g.AllOffset OR g.AllOffset EQ '@offset'"> | |
<mvt:assign name="g.AllOffset" value="0" /> | |
</mvt:if> | |
<mvt:foreach iterator="product" array="all_products:products"> | |
<mvt:comment> ==== custom logic here ==== </mvt:comment> | |
</mvt:foreach> | |
<hr> | |
<mvt:if expr="g.AllNextOffset GT 0"> | |
<mvt:assign name="g.next" value="l.settings:urls:_self:auto_sep $ 'AllOffset=' $ g.AllNextOffset $ '&continue=' $ g.continue" /> | |
<mvt:if expr="g.continue EQ 1"> | |
<meta http-equiv="refresh" content="0; URL='&mvt:global:next;'" /> | |
</mvt:if> | |
<a href="&mvt:global:previous;">PREV</a> &mvt:global:AllNextOffset; <a href="&mvt:global:next;">NEXT</a> | |
<mvt:else> | |
Complete | |
</mvt:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment