0

I want to add add to cart button in third party module .phtml file same as add to cart works on detail page.

There are different product-type like grouped product and I want add-to-cart button on all products.

closed as off-topic by Siarhey Uchukhlebau, Prince Patel, Keyul Shah, liyakat, Rajeev K Tomy Sep 12 '17 at 10:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about third-party modules are generally off-topic because the scope of functionality and code are not available. For more information, see this meta post/answer." – Siarhey Uchukhlebau, Prince Patel, Keyul Shah, liyakat
If this question can be reworded to fit the rules in the help center, please edit the question.

1

To achieve this you need to override default magento block :

vendor/magento/module-catalog/Block/Product/ListProduct.php.

=> Link :

https://magento.stackexchange.com/a/122897

  • i visited that link before this but i want add that button in third party extension detail page. i link is given by you it's used for override to theme category list page and i want to use add to cart button at third party extension. – Sarfaraj Sipai Sep 8 '17 at 9:17

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