| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Flexslider X-Cart 4.4.5 Intergration | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Flexslider X-Cart 4.4.5 Intergration
Hello everyone, I╢ve been trying to get Flexslider to work in X-CART 4.4.5, but thus far it╢s not working.
Works great otherwise, but I╢m having problems getting it to run in X-CART. Has anyone done this successfully and if so do you have a tutorial or tips you could share ? Thanks
__________________
X-Cart Version: 4.4.5 GOLD |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Flexslider X-Cart 4.4.5 Intergration
I implemented the Flexslider successfully. What sort of problems are you having with it?
A common mistake is to include jquery twice. I see this line: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> But X-cart already has Jquery included.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||
|
|||||||
Re: Flexslider X-Cart 4.4.5 Intergration
Hello Mike, thanks for responding. That could be what's causing it, I will remove that line, test again and let you know if I get it working.
__________________
X-Cart Version: 4.4.5 GOLD |
|||||||
#4
|
|||||||
|
|||||||
Re: Flexslider X-Cart 4.4.5 Intergration
Hello Mike, I tried removing it, but no luck.
Added the following code to <head> in home.tpl <link rel="stylesheet" type="text/css" href="{$AltSkinDir}/custom/css/flexslider.css" /> <script src="{$AltSkinDir}/custom/js/jquery.flexslider-min.js"></script>. Also added and removed the load function script: <script type="text/javascript" charset="utf-8"> $(window).load(function() { $('.flexslider').flexslider(); }); </script> Added the following to welcome.tpl: <div class="flexslider"> <ul class="slides"> <li> <img src="{$AltImagesDir}/custom/pic1.jpg" alt="" title=""/> </li> <li> <img src="{$AltImagesDir}/custom/pic2.jpg" alt="" title=""/> </li> <li> <img src="{$AltImagesDir}/custom/pic3.jpg" alt="" title=""/> </li> </ul> </div> Pictures and css loading but not the flexslider.js as far as I can see. I╢m probably missing something obvious, any ideas.. Thanks
__________________
X-Cart Version: 4.4.5 GOLD |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Flexslider X-Cart 4.4.5 Intergration
Also check that anywhere you have added javascript to a template (.tpl file), that you enclose it within {literal} {/literal} tags. Smarty and javascript share characters in their syntax, and you do do not want smarty to interpret the javascript characters. The literal tags tell smarty to ignore the javascript.
---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Flexslider X-Cart 4.4.5 Intergration
Quote:
This bit: PHP Code:
PHP Code:
Another way to escape those is to use {$ldelim} for "{" and {$rdelim} for "}". Like this: PHP Code:
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#7
|
|||||||
|
|||||||
Re: Flexslider X-Cart 4.4.5 Intergration
Thanks Mike, I have not got it working in X-Cart yet, got it working in Drupal though. Will continue, sooner or later I╢m sure I╢ll find out what╢s wrong.
__________________
X-Cart Version: 4.4.5 GOLD |
|||||||
|
|||
X-Cart forums © 2001-2020
|