I'm working on getting the Commission Junction tracking added to a store and I'm having problems figuring out how to pull in information from the EmporiumPlus Coupon Redemption module into their script:
The DISCOUNT value specifies the total dollar amount to be deducted from the order subtotal.
The DCNT value specifies the discount for the associated ITEM, and is distributed across the QTY for that ITEM.
I know that the token I'm using to pull in the coupon code is not the correct token. I may not need the DCNT if I understand it correctly - it sounds like it's used for something like the Instant Coupon but the store doesn't use any.
Code:
<!-- Commission Junction --> <script> var MasterTmsUdo = { 'CJ' : { 'CID': 'XXXXXXX', 'TYPE': 'XXXXXX', 'DISCOUNT' : '', 'OID': '&mvte:item:order_id;', 'CURRENCY' : 'USD', 'COUPON' : '&mvte:order:coupons;', 'FIRECJ' : 'TRUE', PRODUCTLIST : [ { <mvt:foreach iterator="item" array="order:items"> 'ITEM' : '&mvte:item:code;', 'AMT' : '&mvte:item:price;', 'QTY' : '&mvte:item:quantity;' 'DCNT' : '' <mvt:foreach iterator="option" array="item:options"> </mvt:foreach> </mvt:foreach> }, ] } }; </script>
The DCNT value specifies the discount for the associated ITEM, and is distributed across the QTY for that ITEM.
I know that the token I'm using to pull in the coupon code is not the correct token. I may not need the DCNT if I understand it correctly - it sounds like it's used for something like the Instant Coupon but the store doesn't use any.
Comment