Performance Issue – Merging CSS and JS Files Causes ‘Add to Cart’ Failure

cssjavascriptperformance

after i change Merge CSS and JS Files to yes, the add to cart button is not working so the customer can not add products to the cart.

Best Answer

Somtimes you'll find some errors trying to merge Prototype and jQuery librarires. If the problem isn't into your code you can try creating groups.

For example:

Into your layout definition, change the addItem action and add the instruction.

<action method="addItem"><type>skin_js</type><name>js/jquery.js</name><group>jquery</group></action>

All the files with the same group will be merged into a separated file. Some times solve this kind of problems.

Related Topic