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?
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.
- Start the workflow with the āOrder paidā trigger.
- 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ā).
- 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.
- 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.
This is the email the customer will receive:
The customer will also be able to see the gift card added to their order in the Shopify Admin.
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.
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.
å°åå°åē»ęäøŖčµå§ēēäŗ
Thank you for such a detailed introduction.
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?
That check is to prevent the process from looping⦠Please add that check.
Here is the reason why this happened:
- When a gift card is sent, the system marks the order as paid.
- The system then checks if the order total exceeds a certain amount set in the flow.
- If the order total is higher than this amount, the system decides to issue a gift card.
- To prevent this from happening automatically, an additional check is needed.
- This check ensures that even if the order meets the amount condition, it must also meet a name condition.
- 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.
Thank you Kate. Your explanation helped me understand how it works.
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ā¦
Amazing! This is also a good choice!