Skip to content

Custom product attribute magento 2

Create a product attribute in BE: Engraving Services, input type: Yes/No.

On Checkout – step Payment Method page, check if in cart attribute Engraving
Services of valid products: Yes, Then disable Payment Method – COD (Cash On
Delivery)

enter image description here
enter image description here

https://docs.magento.com/user-guide/v2.3/stores/attribute-product-create.html

I have followed the devdocs and created the product attribute, but i don’t have a solution to disable the COD.

Thanks so much!!!