Frontpage slideshow will not load

Looking to add this slideshow found here [url]http://dreamcss.comli.com/jquery%20sliders/[/url] to my cs-cart front page but after adding the code it just doesnt show. The scripts are there, the html is there but for some reason the javascript isnt working ! I understand CS-Cart works off jquery so having two jquery scripts present could be causing the issue ? Is there any solution ? You can see the site im adding this to here [url]http://tigeris.co.uk/index.php[/url]

Thanks

You’re calling a stylesheet in your script tag! That would be the first thing to look at…

Thanks Jonah i dont know how that one got there, the css is actually coming from the styles.css so the one in the script wasnt of any use. Ive removed it and the problems still there, no slideshow. Im convinced its a jquery conflict since my html is all there, the style is currently set to display:none so the elements are hidden waiting on the javascript to set them to visible. I just dont know how to solve javascript problems, im more of a css guy :p. Any ideas, id like to get the frontpage up by tonight so we can go live.

hmmmm, it could be because of the two instances of jQuery (never ran into that problem myself), is there a reason you’re loading 2?



Also, do you have the script loaded that’s needed for the slideshow? Is it in scripts.js?



Another thing, you’ve got 3 script errors:



Error: jQuery.runCart is not a function

Source File: [url]http://www.tigeris.co.uk/index.php[/url]

Line: 91



Error: jQuery.ua is undefined

Source File: [url]http://www.tigeris.co.uk/index.php[/url]

Line: 524



Error: jQuery.loadAjaxLinks is not a function

Source File: [url]http://www.tigeris.co.uk/js/ajax.js[/url]

Line: 331



Those are likely occurring for the same reason your slideshow is not working so something is going on here. My guess is that you either don’t have some necessary script loaded or it’s a conflict with the 2 instances of the jQuery script.


  • Jonah

I guess the second jquery.js isnt needed since cs-cart runs of jquery so it must have the library loaded already ? All i know is the slideshow im trying to include needs the jquery library to work since its jquery based.



The script needed is in scripts.js and you can see the slideshow in action here [url]http://dreamcss.comli.com/jquery%20sliders/[/url] with all the required files loaded.



After removing the second jquery file these errors



Error: jQuery.runCart is not a function

Source File: [url]http://www.tigeris.co.uk/index.php[/url]

Line: 91



Error: jQuery.ua is undefined

Source File: [url]http://www.tigeris.co.uk/index.php[/url]

Line: 524



Error: jQuery.loadAjaxLinks is not a function

Source File: [url]http://www.tigeris.co.uk/js/ajax.js[/url]

Line: 331



have gone away however im now getting this error and still no slideshow



Error: data[k].type is undefined

Source File: [url]http://www.tigeris.co.uk/js/core.js[/url]

Line: 1004

Jonah what if i was to use php to load the scripts, really i only need the frontpage slideshow and maybe the nav dropdowns loaded on the index page so if i was to create some sort of a variable if index.php load script else load other scripts. Would something like that work at all ?

No, don’t do that, that would be much more work… I think the problem is either one of two things:


  1. Your script tag to initiate the slideshow (your type attribute is badly formatted):






try correcting to:






2. Your markup for the slideshow - make sure this is all setup the way it is supposed to be. I.E. - using the markup that is called from any of the scripts to get it running. If you changed any of the markup, then you would also have to change it in the scripts.



I think #1 is likely the issue though. Try that.


  • Jonah

Thankyou Jonah #1 was the problem as soon as i corrected it and cleared the cache the slideshow started working ! Really thanks, your a life saver would have took me most of the night going down the php route and after all that it still wouldnt have worked.

Also Jonah if you dont mind my asking what could be causing this error



Error: data[k].type is undefined

Source File: [url]http://www.tigeris.co.uk/js/core.js[/url]

Line: 1004



I dont see it in the demo cs cart store, just a little worrying since its coming from the core file and i havent edited anything there.

Glad I could be of service and it looks good! I know how much of a pain little things like this can be and even after 10 years of doing web design I still come sacross them! I’ve been helped numerous times myself for stuff like this so I’m doing what I can to share the love and give back to the community :slight_smile:


  • Jonah

I saw that too and I’m guessing it may be showing up because you don’t actually have any products displayed on the home page and core.js is loading code that is for products you would have displayed??? Perhaps you have a block set to display something on the home page but no products in the shop yet?

[quote name=‘jonahcoyote’]Glad I could be of service and it looks good! I know how much of a pain little things like this can be and even after 10 years of doing web design I still come sacross them! I’ve been helped numerous times myself for stuff like this so I’m doing what I can to share the love and give back to the community :slight_smile:


  • Jonah[/QUOTE]


[quote name=‘jonahcoyote’]I saw that too and I’m guessing it may be showing up because you don’t actually have any products displayed on the home page and core.js is loading code that is for products you would have displayed??? Perhaps you have a block set to display something on the home page but no products in the shop yet?[/QUOTE]



Ahh that must be it, just wanted to check incase it was something serious :wink:



Thanks for the assistance, i hope one day to give it back myself ive got alot of learning to do first though :).

FYI



If you are using the default jquery.js (as provided in CS-Cart releases)

you will being an old version.



If you are using a newer script requiring a new version of jquery you can’t use it…