I have this inside a loop of products that reside in the array named record.
I get output for &mvt:record:id; and &mvt:record:code so i know my loop is working.
Also I get &mvt:record:customfield:product_flag; and it definitely outputs SALE
I checked by looking in the database and the contents of the product_flag is SALE no spaces before or after or anything like that.
What I am trying to do is unset sale to be null.
I can't seem to get rid of SALE on these products. I have tried Write_Product_Id and also Write_Product_Code
The . is so I can easily see that the if else is working. It's only there for debugging purposes.
I get output for &mvt:record:id; and &mvt:record:code so i know my loop is working.
Also I get &mvt:record:customfield:product_flag; and it definitely outputs SALE
I checked by looking in the database and the contents of the product_flag is SALE no spaces before or after or anything like that.
What I am trying to do is unset sale to be null.
I can't seem to get rid of SALE on these products. I have tried Write_Product_Id and also Write_Product_Code
Code:
<mvt:if expr="(l.settings:record:customfield:product_flag EQ 'SALE')"> <BR>- SALE FLAG YES --- code: &mvt:record:code; (&mvt:record:id;)flag: &mvt:record:customfield:product_flag;<BR> <mvt:comment>remove sale flag </mvt:comment> <mvt:item name="customfields" param="Write_Product_ID( l.settings:record:id, 'product_flag', '')" /> <mvt:else> . </mvt:if>
Comment