We have a product custom field to mark an item out of stock. We need to write a conditional on the Wish List page so that customers can't order out of stock items. We use the below on the CTGY page just fine but it isn't working on the Wish List page. I did make sure that the customfields item was assigned on the WIsh List page:
Code:
<mvt:item name="customfields" param="Read_Product_Code(l.settings:product:code, 'stock', l.settings:stock)" /> <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:stock"> SOLD OUT <mvt:else> ADD TO CART </mvt:if>
Comment