Skip to product information
1 of 1
Published:2023.12.23

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"

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"

Applications

  • Member information management and editing

How to implement

  • Shopify Flow
View full details

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.

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