Hoping someone can help with this issue I’m having. I’m in the middle of migrating from Woocommerce and this discount combination isn’t working. I’ve combined both discounts, with each other and with free shipping option.
Discount 1: buy 3 items in collection A, get £2 off each item.
Discount 2: spend £20 in “collection containing all products” get specific free product.
Customer adds 3 of collection A items to cart, gets £2 off each item, cart is now £30.
Product should be free, because cart is >20, and the 3 items in collection A are also in “collection containing all products”, but it’s not free. Product only becomes free if cart is >20 of items that aren’t discounted by Discount 1.
Hope that makes sense. Is this combination not possible? Seems pretty basic “spend X get free gift”.
As far as we know, if more than one discount applies to the same product(s), Shopify only applies the best discount for the customer from all the applicable ones. What you’re trying to do is discount “stacking”, which is not currently supported natively.
Ok thanks for the reply. I must say I’m rather disappointed that for +£200 a month, Shopify expect me to pay a third party app developer a monthly fee to do a spend X get free gift.
I may have to attempt making a basic app to do this myself. ChatGPT has already been a great help writing custom js and liquid for my frontend. I refuse to pay a monthly fee for such basic functionality, probably a few lines of code.
Shopify lets you extend the backend functionality for discounts, and they recently made it to where you can use JavaScript.
That being said, as someone who recently built a discount app using Shopify Functions, it’s probably not going to be “a few lines of code.” I guess it depends on how general you’re making your discount functionality, but there are all sorts of edge cases, especially if you have other apps on your site (like product options/variant apps) that make changes during the checkout.
Also, I recommend exercising some caution when using ChatGPT to write code. If it doesn’t know the answer to something, it’ll just make something up. So be sure to carefully review any logic it gives you, so that you don’t end up losing money on discounts due to potentially-buggy code it might write.
There are several other developers waiting on this. According to the discussion on GitHub, there might be some word on this in the upcoming Shopify Summer Editions. So… We’ll see if that happens soon.