Skip to content

Instantly share code, notes, and snippets.

@brandonsheppard
Last active Aug 29, 2015
Embed
What would you like to do?
Hide RRP from user group 3
<div class="savings-container">
[%if [@user:group_id@] eq '3'%]
[%if [@inpromo@]%]
<span class="label label-danger">On Sale</span>
[%/if%]
[%if [@save@] > 0 and ![@has_child@] %]
<span class="label label-warning">
[%format type:'percent'%][@save@][%/format%] OFF</span>
[%/if%]
[%if [@save@] > 0%]
<span class="label label-default">RRP [%format type:'currency'%][@retail@][%/format%]</span>
[%/if%]
[%/if%]
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment