Re: Commission Junction Tracking
I tried this and just now realized why my logic was wrong:
The total is now being displayed as a negative number again. So I'm thinking if I use LT 0 maybe it will work?
I tried this and just now realized why my logic was wrong:
Code:
<mvt:foreach iterator="charge" array="order:charges"> <mvt:if expr="l.settings:charge:type EQ 'COUPON'"> <mvt:assign name="g.coupon_total" value="g.coupon_total + l.settings:charge:amount" /> </mvt:if> </mvt:foreach> <mvt:if expr="g.coupon_total GT 0"> <mvt:assign name="g.coupon_total" value="g.coupon_total * -1" /> </mvt:if> 'DISCOUNT' : '&mvt:global:coupon_total;',
Comment