I want to create Add to cart button using Custom module in product page,listing page and other page.Please advise me how to create this functionality.

Any help would be appreciated...


1 Answer 1


Please try overriding this core file in your custom module/theme Magento_Catalog/templates/product/view/addtocart.phtml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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