byte8/module-stock-radar-hyva
Composer 安装命令:
composer require byte8/module-stock-radar-hyva
包简介
Hyva theme compatibility for Byte8 Stock Radar — Alpine.js back-in-stock form, no jQuery/RequireJS.
README 文档
README
Companion module to byte8/module-stock-radar that swaps the Luma RequireJS template for an Alpine.js + Tailwind variant. Uses hyva.getFormKey() for CSRF and reads variant SKU updates from a byte8:stockradar:variant window event so configurable PDPs subscribe to the right simple SKU.
Install
composer require byte8/module-stock-radar-hyva bin/magento module:enable Byte8_StockRadarHyva bin/magento setup:upgrade
Both byte8/module-stock-radar and hyva-themes/magento2-theme-module must be installed and enabled.
What this module does (and doesn't)
- ✅ Swaps the PDP "Notify me" template to a Hyva variant
- ✅ Zero new admin or backend code
- ❌ No new business logic — all validation, dispatch, and email sending lives in the parent module
Wiring variant SKU into the form
If the PDP is configurable, dispatch the variant SKU when the user picks options:
window.dispatchEvent(new CustomEvent('byte8:stockradar:variant', { detail: selectedSimpleSku }));
Hyva swatches and select renderers can hook into the private-content-loaded event or the swatch click handler to fire this.
Support
Byte8 Ltd — support@byte8.io
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-05-02