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.
User | RANK |
---|---|
4 | |
2 | |
2 | |
2 | |
2 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023