1

I created a custom module which has option to enable / disable Add to cart button in front end , I'm trying to hide button without editing the core templates files , is there any way to implement it .

Also i tried to solve this using Observer function from my module but that's not working exactly as i needed.

Any help is appreciated , Thanks in advance :)

  • Did you try to override core phtml in your Module – Magento 2 Nov 21 '17 at 6:18
  • You have to override addtocart.phtml file – Syed Muneeb Ul Hasan Nov 21 '17 at 6:19
  • My requirement is a custom module to implement it all , if i override addtocart then i have to create a folder in current theme and then only it will work , im trying to create as a module which will be plug an play for multiple magento sites. – ManoharSingh Nov 21 '17 at 6:37
  • did you find any solution for this? – fudu Oct 3 '18 at 13:42
  • @fudu no i didn't get solution for this. – ManoharSingh Oct 15 '18 at 10:17

Your Answer

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

Browse other questions tagged or ask your own question.