I added a product custom field called ShowTermsOfUse and want to show a block of text for any products that have that checkbox enabled in the admin.
I added this code and other variants to the PROD page but can't sort out the test condition. When I look at the Token List for the prod page for the test product http://www.allfrom1supply.com/chem-bake-step-2-xlt.html I don't see a variable for the value of the checkbox which I expected would be there as a '1' or 'yes'
I'm sure it is a dumb mistake but I've been going in circles so appreciate your help.
I added this code and other variants to the PROD page but can't sort out the test condition. When I look at the Token List for the prod page for the test product http://www.allfrom1supply.com/chem-bake-step-2-xlt.html I don't see a variable for the value of the checkbox which I expected would be there as a '1' or 'yes'
I'm sure it is a dumb mistake but I've been going in circles so appreciate your help.
Code:
<mvt:item name="customfields" param="Read_Product(l.settings:product:code,'ShowTermsOfUse') " /> <mvt:if expr="l.settings:customfields:ShowTermsOfUse EQ 'yes'"> <div class="terms-of-use-ec"> <h2>Terms of Use</h2> <span class="terms-of-use-ec-body">This product is intended for use by knowledgeable and trained professionals. In order to purchase and/or use this product yourself, or purchase it on behalf of another entity, you must agree to read and educate yourself, and any intended users as to the technical specifications, material data safety, proper product and surface preparation, application requirements, suitability for intended usage and all other requirements that insure a successful result. Improper usage and failing to educate yourself in the aforementioned areas can result in product failure, damage to surfaces, personal injury and claims against you AND will void your warranty.</span> </div> </mvt:if>
Comment