What: A ReadyTheme content section holding a set of information that relates to specific groups of products, but not all the products where the content section will be displayed.
Desired outcome: Group the 'sub sections' into mvt:if statements that will only show the relevant information. I have achieved a similar effect before, but it only evaluated a single value not a group of values.
The code:
This seems like it should work, but when ever I load one of the pages with this Content Section displayed, it shows all of the sub sections.
Desired outcome: Group the 'sub sections' into mvt:if statements that will only show the relevant information. I have achieved a similar effect before, but it only evaluated a single value not a group of values.
The code:
Code:
<mvt:comment>item dog special</mvt:comment> <div class="banner-alert"> <div class="item-special-head"> Save on item </div> <mvt:if expr="l.settings:product:code EQ 'item-9-22-1tab' OR 'item-22-44-1tab' OR 'item-44-88-1tab' OR 'item-88-123-1tab'"> <div class="banner-text item-special"> <p>Save $_on Singles</p> <p>Use coupon code: <em>code</em></p> </div> </mvt:if> <mvt:if expr="l.settings:product:code EQ 'item-4-9-3tabs' OR 'item-9-22-3tabs' OR 'item-22-44-3tabs' OR 'item-44-88-3tabs' OR 'item-88-123-3tabs'"> <div class="banner-text item-special" style="border-right: 1px solcode #4178c8; border-left: 1px solcode #4178c8;"> <p>Save $_on 3 Pack</p> <p>Use coupon code: <em>code</em></p> </div> </mvt:if> <mvt:if expr="l.settings:product:code EQ 'item-4-9-6tabs' OR 'item-9-22-6tabs' OR 'item-22-44-6tabs' OR 'item-44-88-6tabs' OR 'item-88-123-6tabs'"> <div class="banner-text item-special"> <p>Save $_on 6 Pack</p> <p>Use coupon code: <em>Code</em></p> </div> </mvt:if> </div>
Comment