Skip to content

Instantly share code, notes, and snippets.

@mivajenn
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mivajenn/6dc55c19faea01e95952 to your computer and use it in GitHub Desktop.
Save mivajenn/6dc55c19faea01e95952 to your computer and use it in GitHub Desktop.
<mvt:if expr="g.request EQ 'AJAX'">
<mvt:foreach iterator="group" array="basket:groups">
<mvt:if expr="l.settings:group:line_id EQ g.lastbasketline AND l.settings:group:quantity GT g.lastqty">
<mvt:assign name="error" value="1" />
</mvt:if>
</mvt:foreach>
<mvt:if expr="g.error">
<div id="ERROR">
Please select another options than what you currently have in your basket.
</div>
<mvt:else>
<div id="BASK">
Add to cart success
</div>
</mvt:if>
<mvt:exit />
</mvt:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment