bluethink/magento-2-restrict-state

Bluethink Magento 2 限制州模块

安装: 5

依赖: 0

建议: 0

安全: 0

星标: 0

关注者: 1

分支: 0

公开问题: 0

类型:magento2-module

1.0.0 2022-12-07 22:27 UTC

This package is auto-updated.

Last update: 2024-09-19 23:40:56 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) Configuration Setting
  • 选择要禁止的州,然后保存配置。

预览之前

  • 设置保存前的通讯录州/省 Address Book State/Provinces before setting saved

  • 设置保存前的结账页面州/省 Checkout Page State/Provinces before setting saved

设置保存后的预览

  • 设置保存后的通讯录州/省 Address Book State/Provinces after setting saved

  • 设置保存后的结账页面州/省 Checkout Page State/Provinces after setting saved