Skip to content

Instantly share code, notes, and snippets.

@MGCodeSnips
Last active January 26, 2017 16:54
Show Gist options
  • Save MGCodeSnips/5393a35dd76e77a9de8cad5eb3696440 to your computer and use it in GitHub Desktop.
Save MGCodeSnips/5393a35dd76e77a9de8cad5eb3696440 to your computer and use it in GitHub Desktop.
How to set price as POA within a show data tag and product page
<!-- category/main page layout --->
{price}
<div class="item-price">
[ekm:nested_if]
iftype="CONTAINS";
ifvalue="[price]";
ifvalue2="0.00";
ifthen="<span class="price-alt"> POA </span>";
ifelse="[price]";
[/ekm:nested_if]
</div>
{/price}
<!-- product page layout --->
[ekm:if]
iftype='EQUALS';
ifvalue='0.00';
ifvalue2='[ekm:productprice]price_text_layout='[price]'; value_only='yes';[/ekm:productprice]';
ifthen='POA';
ifelse='[ekm:productprice][/ekm:productprice]';
[/ekm:if]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment