Last active
January 26, 2017 16:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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