GithubHelp home page GithubHelp logo

mageprashant / magento2-checkout-address-restriction Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

Magento 2: Add Custom Address Validation In Checkout

PHP 94.00% JavaScript 6.00%
checkout magento magento2 address address-validation checkout-address module validation restrictions address-restriction

magento2-checkout-address-restriction's Introduction

Magento 2 Checkout Address Restriction Extension FREE

Magento 2 Add Custom Address Validation In Checkout.

Magento 2 has its own set of validations for the address fields in the checkout step. But sometimes you may want to add some custom validations in the different address fields. Some examples may be like limiting the character limit in the firstname and lastname of shipping and billing address. Use cases: Some ERP systems have certain limits on the length of fields that they can store. But Magento has no such limit on these fields. So while exporting the order data to the ERP you may face problems. Fortunately, we can handle this problem in Magento 2 with some effort. We will start by creating a new module for this functionality.

Installation Instruction

Step 1

Install module via composer (recommend)

Run the following command in Magento 2 root folder:

composer require mageprashant/magento2-checkout-address-restriction

Install module manually

  • Download the extension
  • Unzip the file
  • Create a folder {Magento 2 root}/app/code/MagePrashant/Addressrestriction
  • Copy the content from the unzip folder

Step 2 - Enable Module

  • php bin/magento module:enable MagePrashant_Addressrestriction
  • php bin/magento setup:upgrade

Step 3 - Configuration

Log into your Magento 2 Admin, then go to Stores > Configuration > MagePrashant > Address Restrictions

Contribution

Want to contribute to this extension? The quickest way is to open a pull request on GitHub.

Support

If you encounter any problems or bugs, please open an issue on GitHub.

magento2-checkout-address-restriction's People

Contributors

mageprashant avatar

Watchers

 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.