Skip to content

Binstellar-Technologies/magento2-using-product-custom-attribute-value-un-set-payment-method-cash-on-delivery-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Magento2 Using product custom attribute value un-set payment method(e.g. Cash On Delivery)

Magento2 an open-source e-commerce platform written in PHP.

   

In this extension we are going to see how can we disable payment method like Cash On Delivery(COD) based on custom product attribute value

   

In this extension, we have created a custom attribute named Purchase Type & set the condition that if purchase type value is purchase then disable the payment method named Cash On Delivery

   

Installation Steps

Step 1 : Download the Zip file from Github & Unzip it
Step 2 : Create a directory under app/code/Binstellar/Paymentmethod
Step 3 : Upload the files & folders from extracted package to app/code/Binstellar/Paymentmethod
Step 4 : Go to the Magento2 Root directory & run following commands

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy -f

php bin/magento cache:flush

   

Before adding product in cart

image1

   

After adding product in cart

image2

   

Blog - Magento2 Using product custom attribute value un-set payment method(e.g. Cash On Delivery)

Note : We have tested this option in Magento ver. 2.4.5-p1

About

In this extension we are going to see how can we disable payment method like Cash On Delivery(COD) based on custom product attribute value

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages