Skip to main content

Purpose

Records inventory changes for favorited products.
This setup is required if you want to:
  • Notify customers when stock falls to a given level
  • Send back-in-stock alerts for favorited products

What to do

Import the Shopify Flow template below and turn it on.

[MultiLikes] Product inventory change detection [product favorites].flow

Download (1.0 KB)
This is the same inventory change detection workflow offered on the back-in-stock and low-stock alert pages. Import it only once, from any one of these pages. Even with two copies, customers get only one alert, but the workflow runs twice on every stock change, which adds unnecessary runs.

For engineers

What this flow does

Whenever a product’s inventory changes, it sends the change to the app so the app database always holds the correct stock level.

Settings

In general nothing here needs changing.
Flow settings
  • Variantid
    • Set {{productVariant.id}}
  • Current Sellable Online Quantity
    • Set {{productVariant.sellableOnlineQuantity}}
If you change this, stock may not sync correctly for stores that sell across several locations.
Because of how Shopify works, merchants who manage retail inventory in Shopify through Shopify POS would otherwise see stock counted as online plus POS. We use Current Sellable Online Quantity so the figure covers online stock only.