Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hi guys!
I'm having a hard time using the script editor to figure out how I can implement this:
I'll give an influencer a promo code, say, INFLUENCER20, where it'll give all who use it 20% discount on their total order—but only up to $100. If their carts, therefore, exceed $500, instead of getting 20% they max out their discounts to just $100.
Thanks for any insight!
Hi Kevinrein,
Here’s an example script/apprach you can explore: Shopify Script - Max discount based on cart value
Steps:
example script:
# Check the cart has a discount code and if so it equals the campaign |
3. Test, Save and Publish
User | RANK |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |