Releases: islandboymv/shop-stock-controls
Release list
v0.3.3
Follow-up to v0.3.2: the mini-cart warning is now inserted below the whole quantity + price row rather than beside the quantity pill. In Blocksy's drawer that row is a no-wrap flex container, so the warning was squeezing in beside the stepper and pushing the price into the remove icon. It now renders as its own full-width line under the row, with the row layout untouched.
v0.3.2
Fixes the truncated "Maximum N per…" warning in the mini-cart drawer (most visible on phones). The temporary warning was being injected inside the theme's fixed-size quantity stepper box, which clipped the second line; it now renders as its own full-width line directly below the stepper.
v0.3.1
Fixes the silent full-page reload when clicking + on a quantity already at its per-order cap (Blocksy cart auto-update submits the cart form on any change event, even a no-op one). At-cap + clicks are now intercepted before the theme sees them and flash the "Maximum N per order." note — in the mini-cart drawer a temporary inline warning is shown instead. Typed values clamped back to the current cart quantity no longer trigger a pointless cart update either.
v0.3.0
Makes the per-order purchase limit visible in the storefront. Previously the limit was enforced server-side but the UI often failed silently: quantity steppers just stopped at the cap, and AJAX cart updates (theme auto-update, mini-cart drawer) swallowed the rejection notice.
- A "Maximum N per order." note now appears under the Add to Cart button and under each affected cart line.
- Typed-in quantities above the cap are clamped client-side before theme AJAX handlers see them, with the note flashing red (or a temporary inline warning where no note is present).
- The note and warning only appear when the per-order limit — not stock — is the binding constraint.
v0.2.0
The "Reorder needed" dashboard widget is now visible to any user with the new ssc_view_reorder_alerts capability (e.g. the Shop Staff role from islandboymv/shop-staff-role), not just manage_woocommerce. Product edit links and the analytics report link only render for users who actually have access to those screens.
v0.1.1
The dashboard widget's empty state now distinguishes "all items above their reorder point" from "no products are tracking stock yet", so a store without stock quantities isn't shown a misleading all-clear.
v0.1.0
Initial release.
- Reorder needed dashboard widget: lists every stock-managed product at or below its low-stock threshold (WooCommerce's own per-product / store-wide setting), sorted lowest first, with SKU, count badge, and out-of-stock highlighting. Cached; refreshes on any stock change.
- Per-order purchase limits: store-wide default under WooCommerce → Settings → Products → Inventory, overridable per product (blank = inherit store default, 0 = no limit). Enforced server-side on add-to-cart, cart updates, checkout, and the Store API; quantity selectors capped to match. Variable products are limited across all variations combined.