tags:

views:

31

answers:

0

I have been working on a small module for an Ajax cart in magento. I have it up and running but I would like to make it as general purpose as possible and have as little hassle as possible to move between sites.

So far, to get it to work I need to comment out the on click action for the btn-cart class buttons in each template they are being used. Also I'm adding a class to each or these buttons with the product I d all this is done manually.

Is there a better solution to this? I.e how to disBle the onclick event in the JavaScript that magento uses and how to edit the template files automatically at install. I would preferably like to have this module fit in with existing sites and so an added complexity is that I can't rely on people using the default templates that come with magento.

I really can't see a good solution to this and am not really looking for code from anyone - just some ideas on how to proceed.