| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Need help to add Tynt to x cart | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hello
I found a awesome tool called tynt Publisher tools http://www.tynt.com/ and want to add tynt to my website can someone tell me the file name where I add the code? The website says to. Add the javascript snippet to the HTML on your page templates right before the closing head tag or anywhere between the open and close body tags. I am runing X cart Gold 4.2.3
If someone could help I would be very happy I think this is a very good SEO tool.
|
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Add it skin1/customer/home.tpl just before the </head>
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||||
|
|||||||||
![]() Quote:
I tried to add the code from tynt to skin1/customer/home.tpl just before the </head> But my website is coming up with an error when I add the code. I tried adding these things called literal tags and it worked but I think I added them in the wrong part of the code. I don’t know what to try next. It seems I have tried everything. |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Can you post here the code
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Quote:
<head> {include file="customer/service_head.tpl"} {literal} This is where I added the Tynt code from tynt website. {/literal} </head> Is this correct? I am playing around with literal tags and am not sure what thy are lol. |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() Can you post the actual code you are adding between the literal tags
This is what literal tag does - http://www.smarty.net/docs/en/language.function.literal.tpl
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#7
|
|||||||||
|
|||||||||
![]() Quote:
This is how we added the code from tynt to our website Including literal tags. <head> {include file="customer/service_head.tpl"} {literal} <script type="text/javascript"> if(document.location.protocol=='http:'){ var Tynt=Tynt||[];Tynt.push('dIgP0Emnur4l2Aadbi-bpO');Tynt.i={"st":true,"ap":"Read more:"}; (function(){var s=document.createElement('script');s.async="async" ;s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})(); } </script> {/literal} </head> This is the code we got from the tynt website without literal tags. <script type="text/javascript"> if(document.location.protocol=='http:'){ var Tynt=Tynt||[];Tynt.push('dIgP0Emnur4l2Aadbi-bpO');Tynt.i={"st":true,"ap":"Read more:"}; (function(){var s=document.createElement('script');s.async="async" ;s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})(); } </script> The tool seems to be working ok on our website just want to make sure we have done this correct. Is this correct? I read the website about smarty and still dont understand literal tags. |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() That is correct, the way you have it.'
The {literal} tag tells smarty engine not to process the code surrounded by {literal} but output it just the way it is
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#9
|
|||||||||
|
|||||||||
![]() Quote:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|