Have your say in Community Polls: What was/is your greatest motivation to start your own business?

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
151 14 17

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
168 30 39

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 9 (9)

Kate_WSQ
Shopify Partner
168 30 39

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
151 14 17

Thank you for such a detailed introduction.

ZunDuJiaDu
uiooo
Shopify Partner
151 14 17

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
168 30 39

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
168 30 39

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
151 14 17

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

ZunDuJiaDu
Kate_WSQ
Shopify Partner
168 30 39

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
151 14 17

Amazing! This is also a good choice!

ZunDuJiaDu

Talktohenryj
Shopify Partner
138 0 27

Hey @uiooo,

 

As you were shown above an additional app is not required but if you would like to see how your gift card campaign is doing you would need a 3rd party app. Below is a link to a video of how my app does that in case you were ever interested:

 

https://www.loom.com/share/da9bb6e07f584397b1206c162d0c8208?sid=1c3362ba-1b8d-4b55-95e4-f667485f7754