Jump to content

SOLVED: Problem with slider integration to theme.


Recommended Posts

Hi. I tired to integrate slider jguery slider to theme( directly to header.tpl), since it is just slider in top of the page and do not need to be handle by backoffice. I did not have any problem to do it and it runs OK. However jquery script for product picture zooming (pop up jquery window with bigger products picture) stops run and it have direct influence to slider script, since when I erase the slider script, everything is OK.

 

I thied two different slider one which use google jquery:

<code> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>

</code>

 

And second with do not: - Tiny Carousel From http://baijs.nl/tinycarousel/# .

 

Do anybody have any solution how to makes this two jquery script run jointly?

Link to comment
Share on other sites

PS already loads those two scripts, or an earlier version of them.

You can try to remove the PS version and use the new version instead (as including both could be the cause for the errors), however, it could also just be a case on missing backwards compatibility (zoom not being compatible with the latest jquery-ui)

Link to comment
Share on other sites

Hi. So I tried the last PS version 1.4.7.0 and the result is still the same.

 

The problematic script cooperation is on http://prestashop.cero.sk/product.php?id_product=2, however on this site is PS version 1.4.0.17 but the result is same compared to the latest version.

 

Once, I add google jquery scripts to code

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>

the jquery script for product picture zooming stops run.

Once, I erase this part of code, the zooming runs OK, however the slider does not.

 

So I stuck on this problem. Any Idea? I am gona try also some others sliders and we will see.

Link to comment
Share on other sites

You were right, tomerg3. The scripts are alleady integratet to PS. I tried today more slider scripts and also the old one and it works. I just had to erase the code:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>

 

I do not know what was wrong yesterday.

Thank for your time.

Link to comment
Share on other sites

×
×
  • Create New...