承接 byte8/module-vat-validator-hyva 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

byte8/module-vat-validator-hyva

最新稳定版本:1.0.0

Composer 安装命令:

composer require byte8/module-vat-validator-hyva

包简介

Hyvä-themed live VAT validation indicator for Byte8_VatValidator (registration form + checkout).

README 文档

README

Adds a live, debounced VAT-validation indicator to Hyvä-themed registration and address forms. Calls the standard Byte8_VatValidator REST endpoint and shows a green / red badge directly under the VAT input as the customer types.

Requirements

  • byte8/module-vat-validator ≥ 0.1.0
  • A Hyvä-based theme (hyva-themes/magento2-default-theme)
  • No additional JS dependencies — Alpine + Tailwind only, both ship with Hyvä

Core module

This is a storefront companion — it does nothing on its own. Install the core validator first: byte8/module-vat-validator. That module provides the EU VIES / UK HMRC / Swiss UID validation, REST endpoints, customer-group mapping, audit log, and CLI. This module just wires a live indicator into Hyvä forms.

composer require byte8/module-vat-validator

Install

composer require byte8/module-vat-validator-hyva
bin/magento module:enable Byte8_VatValidatorHyva
bin/magento setup:upgrade
bin/magento cache:flush

What it does

Page Behaviour
customer/account/create Watches the taxvat field; shows live indicator
customer/address/form Watches the vat_id + country_id fields; shows live indicator

Behaviour:

  • 600 ms debounce — won't spam the REST endpoint while the user types
  • Recognises both 2-letter ISO prefixes (DE…, GB…) and the Swiss 3-letter CHE… prefix
  • Falls back to the country dropdown's value if no prefix is typed
  • Hides itself silently on unavailable / skipped outcomes — never shows a misleading red badge when VIES is just slow

Customising

Override Byte8_VatValidatorHyva::vat-indicator.phtml in your theme. The whole component is a single self-contained Alpine x-data block — drop in your own copy / icons / Tailwind classes.

Hyvä Checkout (Magewire)

Not yet shipped. The standard Hyvä Checkout uses Magewire components which need a server-side wire-class. Open an issue if you need it and we'll prioritise.

License

MIT

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固