GithubHelp home page GithubHelp logo

binstellar-technologies / magento2-using-product-custom-attribute-value-un-set-payment-method-cash-on-delivery- Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8 KB

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

PHP 100.00%
magento magento2 magento2-free-extension magento2-free-modules payment-method restrict-payment-method

magento2-using-product-custom-attribute-value-un-set-payment-method-cash-on-delivery-'s Introduction

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

magento2-using-product-custom-attribute-value-un-set-payment-method-cash-on-delivery-'s People

Contributors

arjunkanani avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.