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

# 【商品收藏】设置库存变动检测

> 通用设置：发送基于库存数量的通知（库存不足、重新到货）时所需的 Shopify Flow 模板。

## 目的

记录收藏商品的库存变动

> [!WARNING]
>
> 如果要开展以下营销活动，则必须进行以下设置。
>
> * 想在库存仅剩 n 件时发送通知
> * 想发送收藏商品的重新到货通知

## 操作步骤

请导入并启用以下 Shopify Flow。

> [card] [\[MultiLikes\] 商品库存变动检测 \[商品收藏\].flow](https://bouquet-inc.com/files/multilikes/inventory-change-detection-1.flow)
>
> 下载（1.0 KB）

## 以下面向技术人员

## 此 Shopify Flow 实现的功能

一旦商品的库存状况发生变动，就会立即发送给应用，使应用数据库中的库存数量持续更新为正确的值。

## 设置项目

> [!NOTE]
>
> 基本上，没有需要更改设置的项目。

![设置项目](https://mintcdn.com/bouquet-inc/fxR0eqQXSYnI3Dir/images/multilikes/inventory-change-detection-1.png?fit=max\&auto=format\&n=fxR0eqQXSYnI3Dir\&q=85\&s=986281d2c05a99c1ffebd7e74a258f41)

* Variantid
  * 设置为 \{\{[productVariant.id](http://productvariant.id/)}}
* Current Sellable Online Quantity
  * 请设置为 \{\{productVariant.sellableOnlineQuantity}}

※如果更改此设置，在多个库存地点销售商品的商家，库存可能无法正确同步。

> [!NOTE]
>
> 由于 Shopify 的规则，对于在 Shopify 上通过 Shopify POS 管理门店库存的商家，库存数量会按“线上库存 + POS 库存的合计”来判定。
>
> 为了将其限定为“仅线上库存”，这里设置了 Current Sellable Online Quantity。

## 相关页面

* [【商品收藏】收藏商品（SKU）库存不足时发送通知](https://docs.bouquet-inc.com/zh/apps/multilikes/flows/low-stock-notification.md)
* [【商品收藏】收藏商品（SKU）重新到货时发送通知](https://docs.bouquet-inc.com/zh/apps/multilikes/flows/restock-notification.md)
* [【商品收藏】创建订单后取消收藏](https://docs.bouquet-inc.com/zh/apps/multilikes/flows/unfavorite-after-order.md)
* [MultiLikes 可用的邮件（通知）营销活动一览](https://docs.bouquet-inc.com/zh/apps/multilikes/email-campaigns.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.