Jump to content

[SOLVED] Js Problems When On Product Pages


Recommended Posts

Hi guys and girls,

 

I am quite new to Prestashop, and not really an expert in web development, but I managed to get a slider into my header and it seems to work on most pages. However, when I get to a product page, my Categories menu doesn't show up, and when I click on product images, the lightbox doesn't work..

 

I'm guessing the problem is something to do with Javascript, and problems with the JS that is being used by the slider, but I have no idea how to know what is wrong..

 

The site URL is www.childsplayentertainment.co.uk

 

As you'll see, there is a slider at the top of the page which is hard coded into the header.tpl

 

It works on all pages, but it seems to be stopping all of the other JS features to stop working..

 

If anyone has the chance to have a look, I'd be most greatful.

 

Carl Ahearne

Link to comment
Share on other sites

i have not looked specifically at your page, but what you will find is that is it a conflict with another javascript being loaded on the products page.

 

try updating the sliders script, you also try changing at which point the javascript is called ie at the end of the page, somtimes it can help.

 

make sure the sliders is jquery compatable as mootool based java stuff does not work well with ps

Link to comment
Share on other sites

Hi,

 

I had a look at your page but can't find any javascript errors or missing functionality?

Can you please provide an example of a page where any javascript is not working?

 

//Mike

 

Hi Mike,

 

Appolgies, the error has now been resolved... The problem was that the page was trying to load 2 different versions of the javascript libraries, so there was a conflict. I got rid of one and all is fine..

 

Thanks for taking the time to have a look though...

 

Carl

Link to comment
Share on other sites

×
×
  • Create New...