View Single Post
  #1  
Old 08-16-2012, 11:02 AM
 
MAPerformance MAPerformance is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 145
 

Default Passing multiple cart items to Javascript code?

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]");
__________________
www.maperformance.com

X-Cart Version: 4.4.3 Gold
Reply With Quote