定制 byte8/module-stock-radar 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

byte8/module-stock-radar

Composer 安装命令:

composer require byte8/module-stock-radar

包简介

Stock Radar for Magento 2 — back-in-stock notifications with throttled batching, per-variant subscriptions, demand heatmap, GraphQL. Luma compatible; Hyva via byte8/module-stock-radar-hyva.

README 文档

README

Back-in-stock notifications that scale. Customers subscribe to out-of-stock products and get notified when inventory returns — but unlike most "notify me" extensions, Stock Radar is built for stores that move real volume.

Ships Luma support out of the box and a full GraphQL surface for headless storefronts. Hyvä support lives in the companion module byte8/module-stock-radar-hyva.

Why another back-in-stock module

Most free competitors blast all subscribers in one go and forget about the merchandiser. Stock Radar fixes both ends:

  • Throttled batched notifications — when 800 people subscribed to a sold-out hero SKU, dispatch is staggered over a configurable window (default 30 min) so a single restock event doesn't crash inventory or your mail provider.
  • Per-variant subscriptions on configurables — subscribe to "Red, M" specifically, not just the parent.
  • Demand heatmap in admin — sortable grid of products with the most pending subscriptions, so reorder decisions are data-driven.
  • GraphQL surface — Hyvä, headless, and PWA Studio out of the box (REST adapter not shipped — file an issue if you need it).
  • GDPR-first — guest subscribers stored with hashed email + unsubscribe token; data subject deletion lookups are O(1) by email_hash.
  • Admin alert on high-demand SKUs — when pending subscriber count for a single product first crosses a configurable threshold, a message appears in the Magento admin notification inbox (bell icon top-right).

Features

Subscription

  • "Notify me" button on out-of-stock product pages (Luma block + GraphQL mutation byte8StockRadarSubscribe; Hyvä via companion module)
  • Customer + guest support
  • Per-variant subscriptions for configurable products
  • One-click unsubscribe via signed token
  • Per-store email/storefront templates

Dispatch

  • Stock observer queues subscriptions into byte8_stock_radar_dispatch when is_in_stock flips from 0 to 1
  • Cron worker drains the queue with a configurable throttle window
  • Failed sends retried with exponential backoff (max 3 attempts)
  • Skips subscriptions older than the configurable expiry (default 90 days)

Admin

  • Subscription grid (Byte8 → Stock Radar → Subscriptions)
  • Demand heatmap (Byte8 → Stock Radar → Demand) — products ranked by pending subscriber count
  • Per-store config (Stores → Configuration → Byte8 → Stock Radar):
    • enable/disable
    • throttle window (minutes)
    • subscription expiry (days)
    • email sender / template
    • admin-alert threshold (post a message in the admin notification inbox when subscriber count for a single SKU first crosses N — see docs/advanced/admin-alerts.md)
    • five admin-toggleable abuse-protection switches (rate limit, honeypot, hide-created-flag, CAPTCHA, double opt-in) — see docs/configuration/general.md

GraphQL

mutation { byte8StockRadarSubscribe(input: { sku: "ABC-123", email: "x@y.com" }) { success message } }
mutation { byte8StockRadarUnsubscribe(token: "...") { success } }
query   { byte8StockRadarSubscriptions { items { sku created_at status } } }

Database

Two tables:

  • byte8_stock_radar_subscription — one row per (product, email, store)
  • byte8_stock_radar_dispatch — staggered send queue, drained by cron

See etc/db_schema.xml for the full schema.

Optional companion modules

  • byte8/module-stock-radar-hyva — Hyvä storefront integration.
  • byte8/module-stock-radar-plenty — bridges Stock Radar with the Byte8 PlentyONE connector so notifications fire on ERP-confirmed inbound stock, not just Magento stock saves.

Installation

composer require byte8/module-stock-radar
bin/magento module:enable Byte8_StockRadar
bin/magento setup:upgrade
bin/magento setup:di:compile

Cron

The dispatch worker runs every minute by default (byte8_stock_radar_dispatch). Make sure Magento's default cron group is active.

Support

Byte8 Ltd — support@byte8.io

byte8/module-stock-radar 适用场景与选型建议

byte8/module-stock-radar 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 byte8/module-stock-radar 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 byte8/module-stock-radar 我们能提供哪些服务?
定制开发 / 二次开发

基于 byte8/module-stock-radar 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-02