I have some Javascript code I need to install on my order success page for conversion tracking, and am not sure how to modify to code to account for multiple items. The code needs a separate line for every item in the order. How do I tell Smarty to do this? See example of the code below.
Code:
order.addItem("[sku-item-1]","[quantity-item-1]","[per-item-cost-item-1]");
order.addItem("[sku-item-2]","[quantity-item-2]","[per-item-cost-item-2]");