I am having problems with my add to cart button on product page. Its not submitting the form and it has been suggested that I should change the button type to fix this.

Here is the button code:

<button type="button" title="Add to Basket" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span>Add to Basket</span></span></button>

How to fix the broken add to cart button?


  • Check the error log for error.
    – Jarnail S
    Jul 13, 2017 at 10:18

1 Answer 1


first of all enable template path hint.

so you can check in which file you need to change code i think that file located in


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.