Buy one get one free discount code won't work

Topic summary

A user is experiencing an error when testing a “buy one get one free” discount code. The code is configured to give a free item when customers purchase one of three specific products, but checkout displays “discount code isn’t valid for the items in your cart.”

Issue identified:
The customer must add both the qualifying purchase item AND the free item to their cart before applying the discount code. Shopify’s BOGO discount structure requires both products to be present in the cart for the code to validate.

Solution:
Add both the “buy” product and the “get” (free) product to the cart, then apply the discount code. This is a Shopify platform requirement mentioned during discount configuration, though it may seem counterintuitive to users expecting the free item to be automatically added.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

I’m making a buy one get one free sale on 3 specific products and then they get one free item of my choosing if they use the code only on one of those free items. But when I test the code in the checkout, I get the error message “discount code isn’t valid for the items in your cart” but it should be valid based on my settings.

I have attached screenshots of my settings for the code, as well as what the code looks like in my checkout. Please can someone help me!!

Hi @FantasySabers ,

This is because the customer needs to add the second product as well to the cart to avail this discount. I know this is counterintuitive but Shopify does mention this when you’re configuring the discount.

Hope that clarifies. Try adding both the Buy and the Get product to cart and then apply the discount!