bluethinkinc / restrictstate
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)
- 选择您要禁止的州,然后保存配置。