X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   installing Lexity.com addon (https://forum.x-cart.com/showthread.php?t=63880)

David-Allan 06-08-2012 01:26 AM

installing Lexity.com addon
 
Hi Guys,

I was having some problems installing the Lexity.com add-on to my site so I thought I'd add this in case anyone else was having problems with it as I couldn't find any help on the forums.

It says to add this to just before the </head> tags.

I tried adding it to my service_head.tpl file but it didn't work so I just added it directly above the </head> tag in home.tpl.

Code:

<!-- Added by Lexity. DO NOT REMOVE/EDIT -->
(Lexity.com supply code to go here)
<!-- End of addition by Lexity. DO NOT REMOVE/EDIT -->


Which I did but the { at the start of the java script seemed to confuse xcart.

The way I fixed this was by adding in {literal} before the code and {/literal} after the code so it should look like this.

Code:

<!-- Added by Lexity. DO NOT REMOVE/EDIT -->
{literal}
(Lexity.com supply code to go here)
{/literal}
<!-- End of addition by Lexity. DO NOT REMOVE/EDIT -->


This now works a treat and the software itself is quite nice to use.

It isn't anywhere near as good as Google Analytics but it does have a nice user interface and is easy on the eye if you just want a quick overview of who is on your site and and what they are buying.

The best thing is its Free which as i'm sure you are aware us Scotsmen like :)

http://www.lexity.com

lexity 06-10-2012 08:10 AM

Re: installing Lexity.com addon
 
David-Allan,

Thanks for the help! We have updated the instructions on our site, too.

The customer/home.tpl file will be in a different directory (than skin1) based on what skin is current active, right?

Amit
Founder/CEO, Lexity

totaltec 06-11-2012 08:13 AM

Re: installing Lexity.com addon
 
Quote:

Originally Posted by lexity
The customer/home.tpl file will be in a different directory (than skin1) based on what skin is current active, right?

Yes it will. You can access the current skin directory by using {$AltSkinDir}.

Instead of just surrounding the JS with {literal}{/literal} you can simply replace "{" with {$ldelim} and "}" with {$rdelim}. Then you can still use smarty tags in your script.

David-Allan 06-12-2012 02:13 AM

Re: installing Lexity.com addon
 
Quote:

Originally Posted by totaltec
Yes it will. You can access the current skin directory by using {$AltSkinDir}.

Instead of just surrounding the JS with {literal}{/literal} you can simply replace "{" with {$ldelim} and "}" with {$rdelim}. Then you can still use smarty tags in your script.


Thanks totaltec I didn't know about that code. Learn something new every day.

artist122 01-23-2014 09:33 PM

Re: installing Lexity.com addon
 
in x-cart 4.6.1 i found if you add the lexity code to service_head.tpl it works when you use the literal tags


All times are GMT -8. The time now is 09:37 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.