Skip to product information
1 of 1
Published:2023.07.16

Example of setting to record coupon codes used in Shopify in meta fields of customer information

Example of setting to record coupon codes used in Shopify in meta fields of customer information

Applications

  • DiscountEdit

How to implement

  • Shopify Flow
View full details

This is an example of a flow setting that saves Shopify's coupon code usage history in a customer meta field. The coupon code cannot be determined whether it can be used or not until it is entered on the purchase screen. This is used to determine when you want to run a different promotion for customers who have already used a first-time bonus coupon.


Example of setting to record used coupon code in meta field of customer information


[Setup Method 1] Create a metafield to store the coupon code usage history


[Setup Method 2] Set up a flow that will be executed when the order information is generated and when the order data contains a discount code


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

Example 1 of the code to be inserted in the Value column: "Adding a code that has been used regardless of past usage history"

Related Post