Skip to content

Instantly share code, notes, and snippets.

@brandonsheppard
Last active August 29, 2015 14:24
Show Gist options
  • Save brandonsheppard/0823c1aa82aa391c5f06 to your computer and use it in GitHub Desktop.
Save brandonsheppard/0823c1aa82aa391c5f06 to your computer and use it in GitHub Desktop.
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