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.
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024