byte8 / module-stock-radar-hyva
Hyva theme compatibility for Byte8 Stock Radar — Alpine.js back-in-stock form, no jQuery/RequireJS.
Package info
github.com/byte8io/magento-stock-radar-hyva
Language:HTML
Type:magento2-module
pkg:composer/byte8/module-stock-radar-hyva
Requires
- php: ~8.2.0||~8.3.0||~8.4.0||~8.5.0
- byte8/module-stock-radar: *
- hyva-themes/magento2-theme-module: *
This package is auto-updated.
Last update: 2026-05-02 10:29:57 UTC
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