Beskrivelse
Woo Webalive Stock Date lets you set an expected back-in-stock date per product (under Inventory). The date is shown on the product page and is automatically hidden once it has passed.
Features
- Date field under WooCommerce Inventory tab.
- Display as full date or number of weeks (configurable).
- Placement above or below the Add-to-cart button.
- Optional display on shop and category product cards above the Buy/Select button.
- Separate category-card styling for color, font size, font weight, and optional background.
- Configurable label, text color, background color, and font size.
- Date is silently removed when it has passed or when the product is back in stock, including variable products.
- Fully i18n ready.
Ændringslog
1.1.0
- Deprecated. All features (restock date, per-variation date, alternative products, frontend notice + variation JS, shop-loop rendering, settings) have moved into Woo Webalive Stock Status Premium (WWSS) 1.1.0 and later. When WWSS is active, WSD now short-circuits at
plugins_loaded: it registers no admin fields, no frontend hooks and no settings tab, only an admin notice explaining that the plugin can be deactivated once the one-time WSD → WWSS data migration has finished. This eliminates any risk of duplicate notices or double-saves while WWSS takes over. When WWSS is not active, WSD keeps working exactly as before. - Data migration: WWSS 1.1.0 ships a one-time migrator that copies
_wsd_restock_date→_wwss_restock_date,_wsd_alternative_products→_wwss_alternative_productsand 13wsd_*options →wc_slr_restock_*options in 200-product batches onadmin_init. WSD source data is not deleted — you can safely deactivate/delete this plugin once you’ve verified the notice appears on your products under WWSS.
1.0.30
- Fixed: notice/alternatives now also render on themes that do NOT fire
woocommerce_single_product_summary(custom summary templates). Added fallback hooks onwoocommerce_product_meta_startandwoocommerce_after_single_product_summary, with a static "already rendered" flag so the notice only appears once per request. - The alternative-products list no longer filters entries by
is_visible(). If the shop owner explicitly selected a product as an alternative, it is shown even if that product is hidden from the catalog.
1.0.29
- Fixed: the restock/alternatives notice is now rendered via
woocommerce_single_product_summary(priority 25 for "before", 35 for "after") instead of the add-to-cart form hooks. This ensures the notice — including the alternative-products list — is shown even when the add-to-cart form is suppressed by other plugins (for example when a product is marked as discontinued and purchases are blocked).
1.0.28
- Alternative products are now always displayed when configured, regardless of the product's stock status or whether a restock date is set. This ensures alternatives remain visible for discontinued items (where no restock date will ever be filled in).
1.0.27
- Added an "Alternative products" multi-select (WooCommerce product search) on the product Inventory tab. Selected products are saved per product and rendered as inline links in the same restock-notice block on single product pages and category cards when the product is out of stock. For variable products the alternatives are shown as a separate parent-level block alongside the variation date notice.
1.0.26
- Fixed duplicate notice on variable products: the variation notice is no longer rendered into the plugin's own wrapper (
.wsd-restock-variation-wrap) — only into the existing.gmrbw-variation-availabilityblock. The empty placeholder div is removed entirely.
1.0.25
- CRITICAL FIX: The frontend render path was destructively calling
delete_post_meta()on the product/variation whenever stock was considered "in stock" or the date had passed. That meant the saved restock date was silently wiped from the database on the first page view, after which nothing was ever shown again. Render now only returns empty HTML in those cases without deleting the saved date. - Added an HTML comment marker (
<!-- wsd-vX.Y.Z -->) before the notice so it's easy to verify in View Source which plugin version is rendering.
1.0.24
- Fixed restock notice not appearing inside
.gmrbw-variation-availability: another plugin/theme rewrites that element onfound_variationafter our handler, so the notice was being immediately overwritten. The variation script now defers the write and uses a short MutationObserver to re-apply the notice if it gets overwritten by a sibling handler.
1.0.23
- Fixed regression in 1.0.22 where the variation script emptied the
.gmrbw-variation-availabilityblock (removing the existing "Bestillingsvare"/stock status text) when the selected variation had no restock date. The script now only writes into that element when there is a restock notice to show, and leaves it untouched otherwise.
1.0.22
- Variation restock notice now also targets the existing
.gmrbw-variation-availabilityblock (used by some availability/backorder plugins) so the notice is shown where themes/plugins already display the variation stock status. Falls back to the plugin's own wrapper if that element is not present.
1.0.21
- Added per-variation restock date support: variable products now show the notice on the single product page when the selected variation is out of stock and has a restock date set. The date is configured on each variation under Product data > Variations.
1.0.20 (2026-05-22)
- Compatibility: Tested with WordPress 7.0 and WooCommerce 10.7.
1.0.19
- Compat: Tested with WordPress 7.0 and WooCommerce 10.7.
1.0.18
- Version bump for redeploy after reverting "Tested up to" to a supported MAJOR.MINOR value (6.9).
1.0.17
- Updated "WC tested up to" to WooCommerce 10.7.0 so WordPress recognises compatibility with the latest WooCommerce patch release.
1.0.16
- Added "Tested up to" header to the main plugin file so WordPress no longer reports the plugin as untested.
1.0.15
- Added a configurable top spacing (em) for the restock notice on category cards so the gap to the WooCommerce stock status can be adjusted.
1.0.14
- Removed the gap between the WooCommerce stock status and the restock date on category/shop cards.
1.0.13
- Switched product date saving to WooCommerce's product-object save flow to ensure the restock date persists correctly.
1.0.12
- Fixed product restock-date saving by correcting the admin nonce handling.
- Removed temporary debug tracing.
1.0.11
- Added init-level tracing to confirm the deployed plugin build is the one actually running.
1.0.10
- Fixed variable-product stock evaluation: restock date now shows correctly when variation stock is zero or negative, and only clears when positive stock exists.
1.0.9
- Fixed stock check: products with managed stock at 0 or negative quantity (including backorders) now show the restock date.
1.0.8
- Settings cleanup and structure alignment for product page and category card styling.
1.0.7
- Added separate style settings for category-card notices (color, font size, font weight).
- Added optional category-card background color toggle.
- Category-card notice now renders with minimal spacing (no padding and no margin).
1.0.6
- Stock-date visibility now follows WooCommerce's general in-stock state, including variable products.
1.0.5
- Fixed the frontend rendering logic for loop notices.
- Restock dates are now removed when a product is back in stock and only shown for zero or negative stock.
1.0.4
- Added an optional setting to show the stock date on shop and category product cards above the Buy/Select button.
1.0.3
- Added a formal WooCommerce plugin dependency in the plugin header.
1.0.2
- Confirmed tested with WordPress 6.9 and WooCommerce 10.7.
1.0.1
- Added a font weight setting in WooCommerce > Settings > Stock Date.
1.0.0
- Initial release.