Magento: add to cart button is not working

In my custom theme there was this code for Add to cart button:

<button type=”button” class=”button-form” onclick=”productAddToCartForm.submit()”><span><?php echo $this->__(’Add to Cart’) ?></span></button>

The problem was that nothing happened when you clicked it. Just remove type="button" so it looks like this:

<button class=”button-form” onclick=”productAddToCartForm.submit()”><span><?php echo $this->__(’Add to Cart’) ?></span></button>

It worked for me…

3 thoughts on “Magento: add to cart button is not working”

  1. I am having a little bit the same problem.

    I am just installing z new magento 1.5 ,and imported the products from an old one
    to my new shop.

    but there are no “add to cart” button on configurable products with custom options,so the “add to cat” so it doesn’t appear. there are any fix. thank you

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image