byte8/module-stock-radar-hyva

Hyva theme compatibility for Byte8 Stock Radar — Alpine.js back-in-stock form, no jQuery/RequireJS.

Maintainers

Package info

github.com/byte8io/magento-stock-radar-hyva

Language:HTML

Type:magento2-module

pkg:composer/byte8/module-stock-radar-hyva

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-04-26 12:06 UTC

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