bluethinkinc/restrictstate

Bluethink Magento 2 状态限制模块

1.0.0 2022-12-07 22:27 UTC

This package is auto-updated.

Last update: 2024-09-19 23:46:54 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