Conversion Tracking
Hi,
I have found a code in order to track sale but cannot able to add it in x-cart page. This is the code they have supplied- Copy first code snippet and paste it in the footer section of your template. HTML Code:
and Copy second code snippet and paste it in the footer of your checkout page. HTML Code:
Now please suggest me where to add. Thanks, xtech |
Re: Conversion Tracking
Can anyone help me please?
|
Re: Conversion Tracking
Unfortunately I'm not familiar with xcart 4 but is there a "Look & Feel" section where you can input custom javascript, like there is with Xcart5?
|
Re: Conversion Tracking
I have added the second set of code in reboot/customer/main/order_message.tpl
HTML Code:
But it is not working.I want anyone's help in forum. Thanks. |
Re: Conversion Tracking
well for one, it looks like you have Smarty variables inside literal tags, that is why they aren't populating.
See http://www.smarty.net/docsv2/en/language.function.literal http://www.smarty.net/docsv2/en/language.function.ldelim.tpl Basically when you use {literal} the smarty variables do not work. So you must {/literal}{$smarty.variable}{literal} each time This is a quick google search on using smarty variables inside literal tags. http://stackoverflow.com/questions/5001886/how-can-a-smarty-variable-be-made-working-under-literal-literal As far as your foreach loop. I believe you need a second foreach loop for the products. You should have one (like you do) for orders, and a separate for the products inside the orders to get variables like {$product.productid} Try using Code:
{foreach from=$order.products item="product"} |
All times are GMT -8. The time now is 07:32 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.