I can't find anywhere the code I need to display a simple message if an item is in the cart with any other item. I've tried every possible combination and searched the forums. I wish there was a simple list somewhere of everything I can do with an if expression. All the Developer Docs are very limited in the information they give. I'd appreciate some direction.
Isn't there some kind of NOT IN or DOES NOT CONTAIN operator? What can I do here?
I need to display a message if our book pre-order is in the cart with any other item.
Code:
<mvt:if expr="'State of Grace' IN l.settings:item:product:name AND l.settings:item:product:price NE 24.95"> STOP: PLEASE REMOVE ALL OTHER ITEMS FROM CART. THE STATE OF GRACE: DAILY MEDITATIONS BOOK MUST BE ORDERED SEPARATELY.<br /><br /></mvt:if>
Code:
<mvt:if expr="'State of Grace' IN l.settings:item:product:name AND 'State of Grace' NE l.settings:item:product:name"> STOP: PLEASE REMOVE ALL OTHER ITEMS FROM CART. THE STATE OF GRACE: DAILY MEDITATIONS BOOK MUST BE ORDERED SEPARATELY.<br /><br /></mvt:if>
I need to display a message if our book pre-order is in the cart with any other item.
Comment