I am trying to setup a conditional for the OCST page that when any one of 12 products are purchased a field shows up. We are using Emporium Plus's Order Custom Fields module.
Here is what I have and although it is working somewhat, if the last item added to the cart is NOT in the list of included products, then it will not show the field. But the field needs to show when any one of those 12 are in the basket regardless of the other items.
I also tried the following and it had the same issue
Here is what I have and although it is working somewhat, if the last item added to the cart is NOT in the list of included products, then it will not show the field. But the field needs to show when any one of those 12 are in the basket regardless of the other items.
Code:
<mvt:if expr="l.settings:item:code EQ 'prod1' OR l.settings:item:code EQ 'prod2' OR l.settings:item:code EQ 'prod3' OR l.settings:item:code EQ 'prod4' OR l.settings:item:code EQ 'prod5' OR l.settings:item:code EQ 'prod6' OR l.settings:item:code EQ 'prod7' OR l.settings:item:code EQ 'prod8' OR l.settings:item:code EQ 'prod9' OR l.settings:item:code EQ 'prod10' OR l.settings:item:code EQ 'prod11' OR l.settings:item:code EQ 'prod12'"><div id="your_id"> <div class="&mvte:global:OrderCFM1_Row;"> <mvt:if expr="'|1|' IN g.OrderCFMErrorMessage"> <span class="red">Error Message</span><br> </mvt:if> <label class="required">Field Prompt</label> <textarea name="OrderCFM1" value="" style="height:150px;width:170px;"></textarea> <input type="hidden" name="OrderCFM_Count" value="1"> </div></div> </mvt:if>
Code:
<mvt:if expr="'|'$l.settings:item:code$'|' CIN '|prod1|prod2|prod3|prod4|prod5|prod6|prod7|prod8|prod9|prod10|prod11|prod12|'">
Comment