techimprovement / module-state-removal
N/A
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: 103.*
- magento/module-customer: 103.*
- magento/module-directory: 100.*
- magento/module-store: 101.*
README
Introduction
The TechImprovement_StateRemoval
module allows you to hide selected US states from the checkout and customer address options in Magento 2 stores. This can be useful for stores that do not ship to certain states or want to simplify their checkout process.
Features
- Enable or disable the module from the admin panel.
- Select specific US states to hide from the frontend.
Installation
Via Composer
- Run
composer require techimprovement/module-state-removal
to add the module to your project. - Enable the module by running
php bin/magento module:enable TechImprovement_StateRemoval
. - Run
php bin/magento setup:upgrade
to install the module. - Deploy static content (if necessary) with
php bin/magento setup:static-content:deploy
.
Manually
- Create the following directory structure in your Magento installation:
app/code/TechImprovement/StateRemoval
. - Upload the module files to the newly created directory.
- Run
php bin/magento module:enable TechImprovement_StateRemoval
from the Magento root directory. - Run
php bin/magento setup:upgrade
to install the module. - Deploy static content (if necessary) with
php bin/magento setup:static-content:deploy
.
Configuration
- Navigate to
Stores -> Configuration -> TechImprovement -> Hide US States
in the Magento Admin Panel. Enable the module and select the states you want to hide.
Usage
Once configured, the selected states will no longer be visible in the state/region dropdowns on the frontend of your Magento store during checkout and customer address management.
Enable/Disable Module
To enable or disable the module, use the following CLI commands:
- Enable:
php bin/magento module:enable TechImprovement_StateRemoval
- Disable:
php bin/magento module:disable TechImprovement_StateRemoval
After enabling or disabling, always run php bin/magento setup:upgrade
and clear the cache.
Support
For any issues or questions regarding the module, please contact support at info@techimprovement.net.
Author
This module is brought to you by TechImprovement Inc, a provider of Magento extensions and custom eCommerce solutions.
Support Our Project
If you find this project helpful, consider supporting us with a donation by clicking this button or scan the QR code below: