cleatus Posted May 1, 2011 Share Posted May 1, 2011 it's not prestashop's fault but the (previously listed) .js file is creating javascript errors when running off of jquery-1.4.4.min.js or the older version it ran nativly with. it breaks the ajax functionality of the cart and firebug shows error with .js file from productscategories module as well, but otherwise runs fine. anybody know how to modify it so it will run with jquery-1.4.4.min.js without breaking the cart or throwing up errors? i'd appreciate it. Link to comment Share on other sites More sharing options...
cleatus Posted May 2, 2011 Author Share Posted May 2, 2011 well i got it. found another forum post which helped me know what to look for which led me to this http://stackoverflow.com/questions/528241/how-do-i-run-different-versions-of-jquery-on-the-same-pagethis totally fixes the problem. no js errors whatsoever. Link to comment Share on other sites More sharing options...
Rymoucha Posted July 31, 2013 Share Posted July 31, 2013 Hello cleatus, Where did you put the code? maybe it will solve my problem... Link to comment Share on other sites More sharing options...
mouse1 Posted August 27, 2013 Share Posted August 27, 2013 I'm including what helped me with similiar issue. I'm using Prestashop 1.5.4.0. I have 2 jquery elements on my home page. I simply added the following code in each script: $.noConflict(); jQuery(document).ready(function($) { This is an example script of what it should look like: <script type="text/javascript" src="js/jquery/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="js/jquery.easing.1.3.js"></script> <script type="text/javascript" src="js/jquery.coda-slider-2.0.js"></script> <script type="text/javascript"> $.noConflict(); jQuery(document).ready(function($) { $('#coda-slider-2').codaSlider({ autoSlide: true, autoSlideInterval: 4000, autoSlideStopWhenClicked: true, dynamicArrows: false, }); }); </script> 1 Link to comment Share on other sites More sharing options...
wippa Posted November 19, 2013 Share Posted November 19, 2013 (edited) Mouse, you save my day. I tried to use jQuery.noConflict() instead $.noConflict() Also, the call to ready function was $(document).ready(function() { // (Note function(EMPTY)). I follow your sample code and add jQuery(document).ready(function($) and now is working. Thanks a lot. Edited November 20, 2013 by wippa (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts