I need to show COD payment method for some zip-code only. How do I add filter in COD payment method for zip-code in Magento 2 ?
How to add my custom condition in cashondelivery.html
cash-on-deliverymagento2payment-methods
I need to show COD payment method for some zip-code only. How do I add filter in COD payment method for zip-code in Magento 2 ?
How to add my custom condition in cashondelivery.html
Best Answer
In your custom module :
di.xml
[vendor][module]\Plugin\Payment\Method\CashOnDelivery\Available.php
In this some time you will get the JS error of :
In this you need to change the
.js
file of that payment method and remove this line.