Re: Passing multiple cart items to Javascript code?
I am trying to incorporate Commission Junction tracking pixels in /common_files/customer/main/order_message.tpl and here is the pixel:
<img src=“https://www.emjcd.com/u?CID=xxxxxxx&OID={$order.order.orderid}&TYPE=5634 &ITEM1=3 214sku&AMT1=13.49&QTY1=1&ITEM2=6577sku&AMT2=7.99&Q TY2=2&CURRENCY=USD& METHOD=IMG“ height=”1” width=“20”>
I need to pass multiple ITEM1, ITEM2, ITEM3, ITEM4 and AMT1, AMT2, AMT3, AMT4, QTY1, QTY2, QTY3 QTY4 etc.
If someone could post the exact code I would greatly appreciate it, thanks!
We have a similar pixel on this page (Part of it below) that works properly but I could not figure out how to incorporate the multiple items in the string above:
mpuid={$order.order.orderid}{foreach from=$order.products item="product"}:{$product.productcode|wm_remove|es cape:javascript}:{$product.amount}{/foreach}"
Thanks!!
__________________
Mike
|