Ina Code Blog

bunch of code in one place
« Magento: error when opening product view page


Dec
17

Magento: add to cart button is not working

Posted by admin in Magento

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…

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

4 Responses to “Magento: add to cart button is not working”

  1. Added by uhoqilifaj on Mar at 25

    uhoqilifaj…

    Download mp3 with Felix Culpa

  2. Added by KEVIN on Jun at 30

    < blockquote >< a href=”http://pillspot.org/”>Pillspot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. Low price drugs. Buy drugs online< /a >…

    Buy:Viagra Soft Tabs.Cialis.Viagra Super Force.Cialis Soft Tabs.Levitra.Tramadol.Soma.Maxaman.Viagra Professional.Super Active ED Pack.Propecia.Viagra Super Active+.Cialis Professional.Zithromax.Cialis Super Active+.Viagra.VPXL….

  3. Added by RAMON on Jul at 21

    < blockquote >< a href=”http://medicamentspot.com/”>MedicamentSpot.com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. Low price pills. Buy drugs online< /a >…

    Buy:Lipitor.Zocor.Female Pink Viagra.Nymphomax.SleepWell.Cozaar.Female Cialis.Prozac.Acomplia.Advair.Amoxicillin.Lasix.Aricept.Buspar.Wellbutrin SR.Zetia.Ventolin.Seroquel.Lipothin.Benicar….

  4. Added by MICHEAL on Jul at 22

    < blockquote >< a href=”http://medicamentspot.com/”>MedicamentSpot.com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. High quality pills. Buy drugs online< /a >…

    Buy:Zocor.Lipitor.Amoxicillin.Lipothin.Female Pink Viagra.Wellbutrin SR.Seroquel.Aricept.Buspar.SleepWell.Female Cialis.Lasix.Benicar.Nymphomax.Advair.Zetia.Ventolin.Cozaar.Prozac.Acomplia….

Leave a Reply

Comment