I want to hide COD payment method based on the Product attribute. I tried payment_method_is_active event method to disable using observer like below.
My observer file is here
public function execute(
I'm using Modifier class to disable some ui components on admin screen. But when I implemented modifyMeta() method, some of the needed ui components not included in the metadata array (eg: gallery)
After I have enabled my new module , I got this error with no details where the error persists so I can debug it,
has anyone has an idea about this
Exception #0 (Exception): Notice: ...
I have created a custom extension for product based cash on delivery.
I have followed the below link for creating the extension.
Disable payment method programmatically in Magento2
Everything works ...
I got 2 variations of the store - EU and USA. I need to disable the PayPal Express method on the EU store, how can I do that?
There no option to disable Payment on EU store:
But avaliable on default ...