View Single Post
  #4  
Old 04-08-2015, 11:46 PM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: Conversion Tracking

I have added the second set of code in reboot/customer/main/order_message.tpl

HTML Code:
{foreach from=$orders item=order} {literal}<script type="text/javascript">var showButton = false;</script>{/literal} {literal}<script type="text/javascript">var apiKey = "169779d3852b32ce8b1a1724dbf5217d";</script>{/literal} {literal}<script type="text/javascript" src="//cdn.refiral.com/libs/refiral-1.0.min.js"></script>{/literal} {literal}<script type="text/javascript"> var customer_name ='{$order.s_firstname|escape}&nbsp;{$order.s_lastname|escape}'; // Replace CUSTOMER_NAME with the customer name var customer_email ='{$order.order.email}'; // Replace CUSTOMER_NAME with the customer email var grandTotal = '{$order.order.total}'; // Replace GRAND_TOTAL with the total amount of the bill of customer var subTotal = '{$order.order.display_subtotal}'; // Replace SUBTOTAL with the subtotal amount of the bill of customer var couponCode = '{$order.order.coupon}'; // Replace COUPON_CODE with the coupon code applied by customer. Leave it blank if no coupon code is applied. var order_id = '{$order.order.orderid}'; // Optional var currency = INR; //Optional // Push all products to refiral_cart_items array var refiral_cart_items = []; refiral_cart_items.push({ product_id: '{$product.productid}', // Product ID quantity: '{$product.amount}', // Quantity name: '{$product.product}', // Name of product }); refiral_cart_items.push({ product_id: '{$product.productid}', // Item Product ID quantity: '{$product.amount}', // Item Quantity name: '{$product.product}', // Name of product }); invoiceRefiral(subTotal, grandTotal, couponCode, refiral_cart_items, customer_name, customer_email, order_id, currency); </script> {/literal} {/foreach}

But it is not working.I want anyone's help in forum.

Thanks.
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote