> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bouquet-inc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# [Product favorites] Detecting inventory changes

> Shared setup. The Shopify Flow template required for stock-based notifications such as low stock and back in stock.

## Purpose

Records inventory changes for favorited products.

<Warning>
  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
</Warning>

## What to do

Import the Shopify Flow template below and turn it on.

<Card title="[MultiLikes] Product inventory change detection [product favorites].flow" icon="download" href="https://cf.channel.io/document/spaces/12286/articles/622837/revisions/1215498/usermedia/69a6b80dad40149e1988">
  Download (1.0 KB)
</Card>

## 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

<Note>
  In general nothing here needs changing.
</Note>

<img src="https://mintcdn.com/bouquet-inc/fxR0eqQXSYnI3Dir/images/multilikes/inventory-change-detection-1.png?fit=max&auto=format&n=fxR0eqQXSYnI3Dir&q=85&s=986281d2c05a99c1ffebd7e74a258f41" alt="Flow settings" width="1600" height="605" data-path="images/multilikes/inventory-change-detection-1.png" />

* 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.

<Info>
  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.
</Info>


## Related topics

- [[Product favorites] Notify when a favorited SKU is low on stock](/en/apps/multilikes/flows/low-stock-notification.md)
- [[Product favorites] Notify when a favorited SKU is back in stock](/en/apps/multilikes/flows/restock-notification.md)
- [Setting up product favorites](/en/apps/multilikes/setup/product-favorites.md)
