| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
add some conversion code only to thank you page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I was wondering how I would write an IF statement that said
Code:
I have some conversion tracking code that is supposed to only be on the thank you page after a purchase is made. I can't just put it at the bottom of the home.tpl file because it can't be on every page. Thanks.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You need to put it in order_message.tpl - this template loads only when order is placed with the thank you page. No need of if statement
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() that is where I had it originally but the guy over at the microsoft adCenter said I need to move the code to just before the closing BODY tag. I have had a problem with the code not reading conversions which is why they told me to move it. Does it really matter where on the page the javascript code is? I mean it should still work as long as I have it between the BODY tags right? The order_message.tpl only fills in the center of the page between the left and right columns so all the code for the right column comes below that .tpl. I didn't think it would matter.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Yes, in certain cases the code placement matters.
You should add it to "skin/%skin_name%/customer/home.tpl" template, but with some special conditions, e.g. like this: Code:
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#5
|
|||||||
|
|||||||
![]() Thank you, exactly what I was looking for.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|