Magento – jQuery clash with testimonials, prototype.js & showcase
If you use testimonials on magento and then place them onto a page that contains the prototype extension showcase, you may notice that both the testimonial and showcase animation stops working, and that an absolute snow of javascript errors are generated.
If this is happens to you, it may be caused by a jQuery library conflict. The testimonials PHP template directly includes jQuery and this may clash with the prototype library, we found that we could resolve the library conflict by placing good old:
jQuery.noConflict();
In the file testimonial_advance.phtml just before document/ready, like this…
[code]
jQuery.noConflict();
jQuery(document).ready(function() {
….
}
[/code]
Adding this solved the problem for us.
testimonial_advance.phtml should be found in this folder:
app/design/frontend/default/default/template/testimonial
However, it is not good magento practice to alter this version of the file, instead you should create a testimonials folder under:
app/design/frontend/default/[your folder]/template/
Then copy testimonial_advance.phtml to this folder and edit it there. Remember to clear the magento cache when testing changes!