Personalized checkout and custom promotions with Shopify Scripts
What I want:
My question:
Business use case:
Thanks for your time and thoughts!
P.S. Setting up a discount code won't work for my use case
Solved! Go to the solution
This is an accepted solution.
Got an answer from Stackoverflow which worked for me:
// Any kind of solution could only work if Accounts are required otherwise you can't track the history of orders.
//There are two possible solutions
// You create a flow that assigns a tag to a customer when they receive a gift. You check // for the tag
Input.cart.customer.tags.include?('gift_received') and don't apply the discount.
// If your case is just 'Gift on the first order' you can just check
Input.cart.customer.orders_count > 0 and that's it.
This is an accepted solution.
Got an answer from Stackoverflow which worked for me:
// Any kind of solution could only work if Accounts are required otherwise you can't track the history of orders.
//There are two possible solutions
// You create a flow that assigns a tag to a customer when they receive a gift. You check // for the tag
Input.cart.customer.tags.include?('gift_received') and don't apply the discount.
// If your case is just 'Gift on the first order' you can just check
Input.cart.customer.orders_count > 0 and that's it.
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025