Skip to main content

Email

Sender

FieldScopeDefault
byte8_stock_radar/email/senderStoresales

Picks one of Magento's standard sender identities (configured at Stores → Configuration → General → Store Email Addresses). The default sales is fine for most stores; switch to support if you'd rather replies route to support.

Template

FieldScopeDefault
byte8_stock_radar/email/templateStorebyte8_stock_radar_email_template

The default template ships with the module — minimal HTML with {{template config_path="design/email/header_template"}} so it inherits your store's existing email header / footer / branding.

Variables exposed

{{var product_name}}      — the product's display name
{{var product_sku}} — SKU (variant SKU for configurables)
{{var product_url}} — full storefront URL
{{var store_name}} — the storefront name
{{var unsubscribe_url}} — signed unsubscribe link
{{var product}} — the full Product object (for advanced templates)

Customising

The cleanest path is to clone the template in admin rather than editing the file:

  1. Marketing → Communications → Email Templates → Add New Template.
  2. Load Default Template: pick "Stock Radar — back in stock".
  3. Edit the HTML to taste.
  4. Save and select your new template in Stores → Configuration → Byte8 → Stock Radar → Email → Template.

This way upgrades don't clobber your customisation.

Switching to the Plenty-enriched template

If you've installed the Plenty bridge, it registers an additional template called byte8_stock_radar_email_template_with_inbound. Pick it in the dropdown to render a "Live warehouse data" callout with physical, net, and inbound (PO) quantities pulled from plenty_stock_entity.

The enriched template falls back gracefully when Plenty data isn't available — a product not tracked in Plenty silently omits the callout.

Admin alerts on high-demand SKUs

FieldScopeDefault
byte8_stock_radar/admin_alert/thresholdWebsite50

When pending subscriber count for any single product first crosses this number, Stock Radar posts a message into the Magento admin notification inbox (bell icon top-right). Merchandisers see "Stock Radar: 50 customers waiting for SKU-12345" without having to open the demand heatmap.

The alert fires once per crossing — subsequent subscribers above the threshold don't re-trigger. Set to 0 to disable. Full details in admin alerts.