yireo / magento2-hyva-checkout-postcode-validator
N/A
1.0.1
2024-01-11 14:29 UTC
Requires
- hyva-themes/magento2-hyva-checkout: ^1.1
- magento/framework: ^102.0 || ^103.0
- magento/module-directory: ^100.0
This package is auto-updated.
Last update: 2024-09-11 15:50:23 UTC
README
此 Magento 2 模块将基于 Magento 核心的 zip_codes.xml
机制,将邮编验证添加到 Hyva Checkout(又称 MageWire Checkout)中
安装
composer require yireo/magento2-hyva-checkout-postcode-validator bin/magento module:enable Yireo HyvaCheckoutPostcodeValidator
使用方法
此模块以 3 种不同方式实现了 Magento \Magento\Directory\Model\Country\Postcode\ValidatorInterface
- 客户端(JS)验证直接在邮编输入上(带有旋转器);
- 延迟客户端(Hyva Checkout 验证)基于 MageWire 验证器;
- 使用 Hyva Checkout 表单钩子
form:build:magewire
允许最终表单提交进行验证;
待办事项
- 请与 Yireo ExtensionChecker 适当检查
- 设置 GitHub actions