bluethink/magento-2-restrict-state
Bluethink Magento 2 限制州模块
1.0.0
2022-12-07 22:27 UTC
README
主要功能
- 此模块用于从结账页面和客户账户部分的区域字段中移除任何国家的州/省。
类型 1: 压缩文件
- 下载 .zip 文件并将其解压到
app/code/Bluethinkinc
文件夹。如果 Bluethinkinc 文件夹不存在,则在您的app/code
文件夹中创建它。 - 通过运行
php bin/magento module:enable Bluethinkinc_RestrictState
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento setup:di:compile
进行编译 - 通过运行
php bin/magento setup:static-content:deploy
分发静态内容 - 通过运行
php bin/magento cache:flush
清除缓存
类型 2: Composer
- 在项目根目录中运行命令
composer require bluethinkinc/restrictstate
- 通过运行
php bin/magento module:enable Bluethinkinc_RestrictState
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento setup:di:compile
进行编译 - 通过运行
php bin/magento setup:static-content:deploy
分发静态内容 - 通过运行
php bin/magento cache:flush
清除缓存
配置
- 要设置移除任何国家的州/省,请转到( Magento Admin -> Stores -> Configuration -> General -> General -> State Restriction)
- 选择要禁止的州,然后保存配置。