I am looking for a way to show inventory to only customers that have a CUSTOM CUSTOMER field checkbox selected to show inventory on the PROD Page.
Currently this code will not work because it is a CUSTOMER CUSTOM Field Check Box. What would be the correct conditional to call if the Custom Field Customer "Show Inventory" Customer Check Box is selected on the customer account on PROD?
Thanks!
Currently this code will not work because it is a CUSTOMER CUSTOM Field Check Box. What would be the correct conditional to call if the Custom Field Customer "Show Inventory" Customer Check Box is selected on the customer account on PROD?
Code:
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :showinventory"> <mvt:if expr="l.settings:product:inv_active OR l.settings:attributemachine:product:inv_active"> <link itemprop="availability" href="http://schema.org/&mvt:product:inv_short;"> </mvt:if> <div id="inventory-message" class="x-product-layout-purchase__inventory-message"><mvt:if expr="l.settings:product:inv_active OR l.settings:attributemachine:product:inv_active">&m vt:product:inv_long;</mvt:if></div> </mvt:if>
Thanks!
Comment