copex/vatfix
Composer 安装命令:
composer require copex/vatfix
包简介
Magento2 module for accepting VAT's (UID) with country code (ex.ATU69932326) as usual in EU.
README 文档
README
Magento2 module to enable VAT ID Validation with countrycodes (ex. ATU69932326) as usual in EU.
This extension for Magento2 changes the behaviour of VAT ID validation in Magento.
Magento2 can change a customers group regarding to a valid VAT ID. This feature is especially useful for companies within the EU. There is a small issue in Magento2 (also Magento1) thus it is not possible to correctly validate a VAT ID where the country code is in it. In Europe the VAT consists of 2 letters that represent the country and additional letters for the company identification. This plugin changes the behaviour how Magento validates the VAT ID so a full VAT ID can be entered. With this plugin it is possible to validate a VAT ID even for countries like Greece (ISO: GR, VAT: EL) or the United Kingdom (ISO: GB, VAT: UK) where the declarations collide.
With this extension installed it enables Magento2 to accept VAT IDs (UID) with prepended countrycodes (ex. ATU69932326)for all european countries. For all other countries the check stays the same. We use the original VIES Service to validate the given VAT ID / UID.
Installation
Copy the folder to your Magento2 "app/code" directory
or install via composer
composer require copex/vatfix
after that enable the plugin by:
bin/magento module:enable CopeX_VATFix
followed by
bin/magento setup:upgrade
followed by
bin/magento setup:di:compile
Workflow
When a customer saves a vat number:
- the plugin takes the given string
- validates the country code if it is a valid EU country code defined in ISO-3166-Alpha-2-Code
- if it is valid, it changes the parameter for original method of magento.
- magento sends the validation-request to the VIES-Service and the normal workflow of magento is executed
Information
This extension is a plugin, it will work out of the box when it is installed correctly. There are no settings in the backend.
Demonstration
I made a Demonstration Video here
Author: Roman Hutterer
Website: CopeX eCommerce Solutions
copex/vatfix 适用场景与选型建议
copex/vatfix 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17.92k 次下载、GitHub Stars 达 17, 最近一次更新时间为 2016 年 04 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 copex/vatfix 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 copex/vatfix 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 17.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 33
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2016-04-11