I was playing around with something that seems straight forward this morning but I'm obviously missing something. I just added a couple custom product fields so that I can click a checkbox in admin to tag products with some text on the PROD page. I added the variables to the PROD page.
If the checkbox is checked, I want to show the div with text. Nada. Gone in circles a few times looking at similar code in the templates but can't sort it out.
Any help appreciated.
Code:
<mvt:item name="customfields" param="Read_Product_Code(l.settings:product:code, 'prod-tag-so', g.prod-tag-so)" /> <mvt:item name="customfields" param="Read_Product_Code(l.settings:product:code, 'prod-tag-cm', g.prod-tag-cm)" /> <mvt:if expr="g.prod-tag-so EQ 'yes'"> <div class="product-tag pt-medgray"> Special Order </div> </mvt:if> <mvt:if expr="g.prod-tag-cm EQ 'yes'"> <div class="product-tag pt-darkgray"> Custom Made </div> </mvt:if> <!-- burt test //-->
Any help appreciated.
Comment