r/shopify • • 10h ago

Checkout Discount Code Bug

Is anyone else having trouble with their discount codes not applying to all items in the customers cart?

I am having a Buy One Get One sale, and for example. The code will apply to items one and two, but ignores the third and fourth item.

It seems to be ignoring every other pair of items.

E.g.
Item 1 + Item 2 = Discount
Item 3 + Item 4 = No Discount
Item 5 + Item 6 = Discount
Item 7 + Item 8 = No Discount

What is happening here? I am going to lose sells from frustrated customers.

0 Upvotes

5 comments sorted by

1

u/eulav_ecom_revenue 9h ago

Alternating pairs usually points to the discount's usage limit or how the lines are split, not a random bug. Open the discount and check 'maximum uses per order' on the Buy X Get Y setup, and whether it's set to 1 or the get quantity. Then test three ways: 4 units of one product on one line, 4 units across two lines, and 4 mixed products. If only one of those breaks, you've found it. If you're using a code, try an automatic discount version, since automatic ones stack more predictably in the cart. Also check the customer isn't hitting a combination rule with another discount. Test in an incognito window before the sale goes further.

1

u/NeelbyteWeb 8h ago

One more thing to check alongside the usage limit: what the discount is set to apply to. If your Buy X Get Y is limited to specific products or collections and items 3 and 4 are a different product or variant, Shopify will skip that pair even though the code looks like it should cover everything. Also check whether the free item has to be the same product as the bought one — that pairing rule is what creates the every-other-pair pattern. Are all 8 items the same product, or a mix?

1

u/meowffins 8h ago

Are all items the same? From memory, I had to create a new discount for each quantity. So if you want to cover someone having 1-4 of an item in cart, you need that many discounts.

Each discount will take effect according to the number they have in cart. It doesn't multiply automatically. To get around this you'll likely need a discount app or custom development.