How to automatically create and issue gift cards to customers who place orders over $199?

Solved

How to automatically create and issue gift cards to customers who place orders over $199?

uiooo
Shopify Partner
127 12 16

Is it possible to automate the function of determining the order amount and creating and sending a gift card? Does it require an additional APP to support this?

ZunDuJiaDu
Accepted Solution (1)

Kate_WSQ
Shopify Partner
122 21 28

This is an accepted solution.

Hi @uiooo ,

This can be done with Shopify Flow as well. I've created a little demo with your use case:

  • Create a gift card product with the amount you want to use for this purpose.
  • Go to Shopify Flow and add a new workflow.

Kate_WSQ_0-1720420845150.png

  • Start the workflow with the "Order paid" trigger.

Kate_WSQ_7-1720421808174.png

 

  • Add a condition to check if the order amount is greater than or equal to $199, and none of the item names are equal to the name of the gift card (in my case it's "Free Gift Card - £1,000.00").

Kate_WSQ_1-1720420910935.png

  • Then add an "Order line item" action to select the gift card product. Make sure to not tick the "Send email to notify customer" box, as this will send a bill to the customer asking them to pay for the gift card, which can be confusing.

Kate_WSQ_2-1720421227135.png

  • Finally, add a "Mark as paid" action. This will automatically mark the added gift card product as paid, and the customer will only receive a separate email with the gift card details.

Kate_WSQ_3-1720421325185.png

This is the email the customer will receive:

Kate_WSQ_4-1720421425636.png

The customer will also be able to see the gift card added to their order in the Shopify Admin.

Kate_WSQ_5-1720421525357.png

One problem with this solution is that the gift card is only manually marked as paid, so its value still shows in the order total.

Kate_WSQ_6-1720421615910.png

I hope this helps! Of course, if you use a public app, they may have a more easily set up solution.

Let me know if you have any other questions! I'm happy to help further.

尊嘟尊嘟给我个赞吧球球了

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me on wangsiqi@shinetechsoftware.com

View solution in original post

Replies 8 (8)

Kate_WSQ
Shopify Partner
122 21 28

This is an accepted solution.

Hi @uiooo ,

This can be done with Shopify Flow as well. I've created a little demo with your use case:

  • Create a gift card product with the amount you want to use for this purpose.
  • Go to Shopify Flow and add a new workflow.

Kate_WSQ_0-1720420845150.png

  • Start the workflow with the "Order paid" trigger.

Kate_WSQ_7-1720421808174.png

 

  • Add a condition to check if the order amount is greater than or equal to $199, and none of the item names are equal to the name of the gift card (in my case it's "Free Gift Card - £1,000.00").

Kate_WSQ_1-1720420910935.png

  • Then add an "Order line item" action to select the gift card product. Make sure to not tick the "Send email to notify customer" box, as this will send a bill to the customer asking them to pay for the gift card, which can be confusing.

Kate_WSQ_2-1720421227135.png

  • Finally, add a "Mark as paid" action. This will automatically mark the added gift card product as paid, and the customer will only receive a separate email with the gift card details.

Kate_WSQ_3-1720421325185.png

This is the email the customer will receive:

Kate_WSQ_4-1720421425636.png

The customer will also be able to see the gift card added to their order in the Shopify Admin.

Kate_WSQ_5-1720421525357.png

One problem with this solution is that the gift card is only manually marked as paid, so its value still shows in the order total.

Kate_WSQ_6-1720421615910.png

I hope this helps! Of course, if you use a public app, they may have a more easily set up solution.

Let me know if you have any other questions! I'm happy to help further.

尊嘟尊嘟给我个赞吧球球了

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me on wangsiqi@shinetechsoftware.com
uiooo
Shopify Partner
127 12 16

Thank you for such a detailed introduction.

ZunDuJiaDu
uiooo
Shopify Partner
127 12 16

HI Kate,

If I don't add a check in the second step that item names are equal to the name of the gift card, the process will continue in a loop (gift cards will be added to the same order over and over again). What's going on? Why is there a loop?

uiooo_0-1720593467084.png

 

ZunDuJiaDu
Kate_WSQ
Shopify Partner
122 21 28

That check is to prevent the process from looping... Please add that check. 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me on wangsiqi@shinetechsoftware.com
Kate_WSQ
Shopify Partner
122 21 28

Here is the reason why this happened:

  1. When a gift card is sent, the system marks the order as paid.
  2. The system then checks if the order total exceeds a certain amount set in the flow.
  3. If the order total is higher than this amount, the system decides to issue a gift card.
  4. To prevent this from happening automatically, an additional check is needed.
  5. This check ensures that even if the order meets the amount condition, it must also meet a name condition.
  6. If the order fails the name condition, the flow stops, and no gift card is issued.

By adding this name condition check, the system will only issue a gift card if both conditions (amount and name) are met. If either condition fails, the flow stops, and no gift card is sent.

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me on wangsiqi@shinetechsoftware.com
uiooo
Shopify Partner
127 12 16

Thank you Kate. Your explanation helped me understand how it works.

ZunDuJiaDu
Kate_WSQ
Shopify Partner
122 21 28

Hi, I just found out that with the latest update from Shopify, you can simply create a Buy X, Get Y discount for this purpose...

Kate_WSQ_0-1720680220536.png

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me on wangsiqi@shinetechsoftware.com
uiooo
Shopify Partner
127 12 16

Amazing! This is also a good choice!

ZunDuJiaDu