Skip to product information
【Dawn】Shopify Flowを使って顧客ごとに特定商品の購入数の履歴をメタフィールドに持たせる設定例② 「注文がキャンセルされたら購入数の履歴も元に戻す」
Published:2023.12.23

[Dawn] Example of setting up a metafield to store the purchase quantity of a specific product for each customer using Shopify Flow ② "If an order is canceled, restore the purchase quantity history"

Following on from my last post, this is about using Shopify Flow to record the purchase history of a specific product. If a purchase is canceled, I want to decrement the purchase history of the metafield that was counted up, so this is the flow for that purpose.


Example of setting up a metafield to store the purchase quantity of a specific product for each customer using Shopify Flow ② "Restore the purchase quantity history if the order is canceled"


[Setup Procedure] Add a Flow that counts down the metafield value according to the number of items purchased when an order is canceled.


After making a purchase (all items are ¥0), you will be able to view the sample code.

View store information

[Dawn] Example of setting up a metafield to store the purchase quantity of a specific product for each customer using Shopify Flow ② "If an order is canceled, restore the purchase quantity history"

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Add a flow that counts down the metafield value according to the number of items purchased when an order is canceled.

↗ Related Post

すべてのShopify TIPS

View all