Skip to content

Instantly share code, notes, and snippets.

@brandonsheppard
Created July 13, 2015 02:20
Show Gist options
  • Save brandonsheppard/a92cfd44daaa4620001e to your computer and use it in GitHub Desktop.
Save brandonsheppard/a92cfd44daaa4620001e to your computer and use it in GitHub Desktop.
Hide pricing from user group 1
<p class="price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
[%if [@user:group_id@] ne '1'%]
[%if [@has_child@]%]from [%/if%]
[%if [@inpromo@]%]
<strong>Now</strong>
<span itemprop="price">[%format type:'currency'%][@promo_price@][%/format%]</span>
[%else%]
<span itemprop="price">[%format type:'currency'%][@store_price@][%/format%]</span>
[%/if%]
<meta itemprop="priceCurrency" content="[@config:defaultcurrency@]">
[%/if%]
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment