View Full Version : Beer tokens available, Jquery.js Prototype.js conflict

06-28-2010, 12:55 PM
Ok working on a new design of a site but can't get the slider which needs Jquery to work with out it messing up the whole checkout system.

Have a look at the site, electricsun.co.uk/new/creams.html

the only way i can get sliders to work it to take the prototype.js out of the other javscript file and move it below the rest of them like so..

<script type="text/javascript" src="http://www.electricsun.co.uk/new/js/index.php?c=auto&amp;f=,prototype/validation.js,scriptaculous/builder.js,scriptaculous/effects.js,scriptaculous/dragdrop.js,scriptaculous/controls.js,scriptaculous/slider.js,varien/js.js,varien/form.js,varien/menu.js,mage/translate.js,mage/cookies.js,varien/product.js,calendar/calendar.js,calendar/calendar-setup.js" ></script>
<script type="text/javascript" src="http://www.electricsun.co.uk/js/prototype/prototype.js" ></script>

If i do this the sliders work as the do now. The problem is that on that page you can add any product to the cart fine but if you go into a product and the try to add to cart it does nothing and also it brakes the lightbox on the product image.

If i move the prototype.js above the other main js files the oposit happens, the add to cart works and the lightbox works but the slider images dont work.

Any help appriciated, and beer tokent to anyone who manages to fget tot the bottom of this...


06-28-2010, 11:35 PM
no idea what the probem was but got it fiexedby using jquery 1.2.3 insted of 1.6.1