When a product people asked about comes back, a short note on the storefront lets visitors know without sending a newsletter.
When a product in the categories you choose is back in stock, can be bought and is shown in the shop, this routine publishes a toast naming it. The toast is available for two days, and each time it appears it closes after ten seconds. Display limits in the shopper’s browser, and a popup from another routine, can stop it showing on a given page.
The routine checks stock when it publishes the toast, not afterwards. If the product sells out again, the published toast can remain eligible to appear until it expires. You can remove it sooner from Activity > Storefront changes. One toast from this routine is live at a time, so a product restocked while it’s running isn’t announced separately.
Before you turn it on
When you add this routine, you’ll be asked to choose the categories to announce.
Only products visible in the shop are announced. Hidden products and products shown only in search results are skipped.
If you use another routine to restore product visibility after restocking, remember that both routines run independently. The announcement may be skipped if the product is still hidden when its conditions are checked.