bluethinkinc/restrictstate

Bluethink Magento 2 restrict state module

1.0.0 2022-12-07 22:27 UTC

This package is auto-updated.

Last update: 2024-10-19 23:56:03 UTC


README

Main Functionalities

  • This module is used to remove states/provinces of any countires from the Region field on checkout and customer account section.

Type 1: Zip file

  • Download .zip file and extract to app/code/Bluethinkinc folder. If Bluethinkinc folder does not exist then create it in your app/code folder.
  • Enable the module by running php bin/magento module:enable Bluethinkinc_RestrictState
  • Apply database updates by running php bin/magento setup:upgrade
  • Compilation by running php bin/magento setup:di:compile
  • Static content deploy by running php bin/magento setup:static-content:deploy
  • Flush the cache by running php bin/magento cache:flush

Type 2: Composer

  • Run command composer require bluethinkinc/restrictstate in your project root folder.
  • Enable the module by running php bin/magento module:enable Bluethinkinc_RestrictState
  • Apply database updates by running php bin/magento setup:upgrade
  • Compilation by running php bin/magento setup:di:compile
  • Static content deploy by running php bin/magento setup:static-content:deploy
  • Flush the cache by running php bin/magento cache:flush

Configuration

  • For setting to remove states/provinces of any countires from the Region field. Go To (Magento Admin -> Stores -> Configuration -> General -> General -> State Restriction) Configuration Setting
  • Select the States you want to disallow and Save Config.

Preview Before

  • Address Book State/Provinces before setting saved Address Book State/Provinces before setting saved

  • Checkout Page State/Provinces before setting saved Checkout Page State/Provinces before setting saved

Preview After

  • Address Book State/Provinces after setting saved Address Book State/Provinces after setting saved

  • Checkout Page State/Provinces after setting saved Checkout Page State/Provinces after setting saved