Personalized checkout and custom promotions with Shopify Scripts
We have a simple discount code 10% off when a minimum purchase amount is met.
We use the script editor (in this specific case you could just use the code settings, but stick with me):
if Input.cart.subtotal_price_was.cents >= 2900
...
else
Input.cart.discount_code.reject({ message: 'Unfortunately you have not yet reached the minimum order value of $ 29' })
With an item below the threshold we enter the code and as expected it is rejected: ''Unfortunately you have not ...".
If we now go back to the store to meet the requirements by adding items till we are over $ 29 and then proceed with the checkout - the code is still rejected. In order for it to work, we have to remove the code and reapply it. That is not very user friendly. Are there any workarounds?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024