Blog

How to Set Up a BOGO Offer in WooCommerce (Buy One Get One)

WooCommerce BOGO: Buy 2, get 1 free, with a cart of 3 jars at $8.00 instead of $12.00

Say you want to run a buy one get one deal: buy 2 jars and get the 3rd free, or a second plant at half price. WooCommerce has no setting for that. A WooCommerce BOGO can’t be built from a standard WooCommerce coupon either: it can make one item free, but it never checks that the customer bought anything first. For a real buy X, get Y offer you need a discount rule plugin.

We tested both in a WooCommerce 11.2.1 store. This guide shows what the coupon workaround really does in the cart. Then it sets up the 4 common BOGO offers (same product, a different product, cheapest item free and 50% off the second) and shows which item gets the discount when a customer buys 3, 4 or 6.

The last part puts the offer on the product page, so shoppers see the deal before they reach the cart.

Does WooCommerce have a BOGO feature?

No. WooCommerce coupons come in 3 types: Percentage discount, Fixed cart discount and Fixed product discount. None of them has a “buy” quantity, so you can’t say “when the cart has 2 jars, take the 3rd off”. The product data and the WooCommerce settings have no BOGO option either.

Every BOGO plugin adds the rule WooCommerce is missing: count what the customer buys, then discount what they get. Coupon-based plugins such as Smart Coupons attach the offer to a code, while discount rule plugins (like the one used below) apply it in the cart without one; the settings differ, but the idea is the same. Before you install one, here is how close a plain coupon gets.

Can you make a WooCommerce BOGO coupon?

The workaround you’ll find in forums is a coupon that takes 100% off 1 item. This is how to set it up:

  1. Go to Marketing > Coupons and click Add coupon (WooCommerce > Coupons on stores with the marketing menu turned off).
  2. In General, set Discount type to Percentage discount and Coupon amount to 100.
  3. In Usage restriction, add the products of the offer under Products.
  4. In Usage limits, set Limit usage to X items to 1.

We made this coupon for 2 jars in our Larch Home test store, a $12 Green Apothecary Jar and a $9 small one, and tried it in the cart:

  • 1 jar on its own: the jar was free. The coupon never asks for a second item, so anyone with the code gets a free jar.
  • 1 large and 1 small jar: the coupon took $12 off, so the large jar was the free one. WooCommerce sorts the items by price, most expensive first, before it applies the item limit (you can see it in includes/class-wc-discounts.php). A BOGO deal normally gives away the cheaper item.
  • 6 jars: still $12 off. The limit is fixed, so the deal doesn’t grow with the cart.
WooCommerce Cart block with a $12 jar and a $9 jar where a 100% coupon limited to 1 item takes $12 off
The coupon made the $12 jar free, not the $9 one.

Adding a Minimum spend of $24 doesn’t make the customer buy 2 jars. WooCommerce checks it against the whole cart subtotal (the WooCommerce coupon docs call it “the minimum cart subtotal needed to use the coupon”), so 1 jar with a $34 plant passed and the jar was free again. We hit the same wall when we tried coupons for quantity pricing in our guide to WooCommerce bulk discounts.

Comparison of a WooCommerce coupon limited to 1 item and a buy X, get Y rule for a buy 2 jars, get 1 free deal

So a standard coupon works for a giveaway (“a free jar with code SPRING”) but not for buy one get one. If you want the BOGO deal behind a code, Advanced Coupons adds buy X, get Y coupons to WooCommerce’s own coupon screen. A code is the better fit when only some people should get the deal, such as your email list or an influencer’s followers. When every shopper should get it without typing anything, use a discount rule, as below.

How to set up a WooCommerce BOGO offer with a plugin

We use Dynamic Pricing & Discount Rules, our plugin for quantity discounts, buy X get Y, order discounts and free gifts. A buy X, get Y rule doesn’t use a coupon: it lowers the item prices in the cart, in the Cart and Checkout blocks as well as the classic cart.

Dynamic Pricing & Discount Rules in 20 seconds.

Every BOGO offer starts the same way:

  1. Go to WooCommerce > Settings > Discount rules and click Add rule.
  2. Set Kind of rule to Buy X, get Y.
  3. Fill in the fields for your offer (below), choose the products under When customers buy, and click Save changes.

The 4 offers below ran in our test store, and the plugin docs explain each kind of rule and the settings. Between the offers, what changes is the quantities and the percentage off, whether the items given are the same products or other products, and which products the rule covers. You don’t need a minimum under Conditions (From an order of or From a number of items): the buy quantity already sets how many items the customer needs.

1. Buy one get one free on the same product

This is the classic WooCommerce buy one get one free: the customer pays for some items and gets more of the same product. Our example is a step up: buy 2 Green Apothecary Jars, get a 3rd free.

WooCommerce BOGO rule: Buy X, get Y with customers buy 2 and get 1 at 100% off on 2 apothecary jars, repeat ticked
  1. Kind of rule: Buy X, get Y.
  2. Customers buy 2 and get 1 at 100% off. 100 means free. For buy one get one free, enter 1 and 1.
  3. The items they get: Come from the same products; the cheapest are discounted.
  4. Repeat for larger quantities: tick it so 6 jars get 2 free.
  5. Products: Specific products, then the jars. A rule can also cover categories, tags, brands or attribute values such as a color.

Leave Name customers see empty and the cart and product page say “Buy 2, get 1 free”.

What the cart shows, and which item is free

The plugin doesn’t add a separate $0 line. It spreads the free jar over the jar line: 3 jars at $12 become 3 at $8.00, with $12.00 crossed out and “Discount: Buy 2, get 1 free” under the name. The line total is $24, the price of 2 jars, and “You saved $12.00” appears under the totals.

WooCommerce cart with 3 jars at $8.00 instead of $12.00, the discount Buy 2, get 1 free and You saved $12.00

Because the discount is shared by the whole line, the price per jar changes with the quantity. This is what the same rule charged in our test, with Repeat for larger quantities ticked and unticked:

Jars in the cartFree with RepeatPays with RepeatFree without RepeatPays without Repeat
20$24.00 ($12.00 each)0$24.00 ($12.00 each)
31$24.00 ($8.00 each)1$24.00 ($8.00 each)
41$36.00 ($9.00 each)1$36.00 ($9.00 each)
51$48.00 ($9.60 each)1$48.00 ($9.60 each)
62$48.00 ($8.00 each)1$60.00 ($10.00 each)

The deal works in groups of 3, so the 4th and 5th jar are full price. The order keeps the shared price too: our test order for 4 jars saved the line as 4 × $9.00 with “Discount: Buy 2, get 1 free”, not $12, $12, $12 and $0. That’s worth knowing before a customer asks for a refund on one jar.

“The cheapest are discounted” matters when the rule covers products with different prices. With both jars in our rule, 2 large jars ($12) and 1 small jar ($9) got the small jar free. With 3 of each, both free jars were small ones: the plugin lines up every item in the deal by price and gives away the cheapest, so that cart paid $36 + $9 = $45.

2. Buy X, get Y free on a different product

For a pairing, such as a free 1 L milk bottle ($4.50) with every Ribbed Vase, Tall ($46), set The items they get to Are other products and choose the free product in the box below it.

Buy X, get Y rule where customers buy 1 tall vase and get 1 glass milk bottle free, with a custom name customers see
  1. Customers buy 1 and get 1 at 100% off.
  2. The items they get: Are other products.
  3. The product they get: Glass Milk Bottle, 1 L.
  4. Name customers see: “Buy a tall vase, get a milk bottle free”. The default “Buy 1, get 1 free” would read as a second vase.
  5. Products under When customers buy: the tall vase.

The customer has to put the milk bottle in the cart: the rule makes it free, it doesn’t add it. With only the vase in the cart there was no discount. With the vase and a bottle, the bottle dropped to $0.00. 2 vases and 2 bottles got both bottles free, and 1 vase with 2 bottles got one.

WooCommerce cart with a $46 tall vase and a glass milk bottle at $0.00 under the discount Buy a tall vase, get a milk bottle free

The offer shows on the vase’s page but not on the bottle’s page, because it belongs to the product being bought. Link to the bottle in the vase’s description so customers can add it. If you’d rather have the free product land in the cart on its own, use the plugin’s Free gift kind of rule instead: it adds a product at no cost when the order qualifies and takes it out again when it no longer does. It adds 1 gift per order, though, so 2 vases still get 1 bottle, not 2.

3. Cheapest item free (mix and match)

This is the same buy 2, get 1 free rule, applied to a whole category instead of chosen products. Under Products, choose Products in categories and pick the category, and leave The items they get on Come from the same products; the cheapest are discounted.

Our rule covers the Glassware category: buy 2, get 1 free, named “Mix any 3 glass pieces, the cheapest is free”. A cart with a $15 bud vase, a $12 jar and a $4.50 milk bottle got the milk bottle free.

WooCommerce cart with a bud vase, a jar and a milk bottle where the cheapest item, the $4.50 milk bottle, is free
“You saved $7.50” adds the bud vase’s $3 sale and the free $4.50 bottle.

The bud vase was on sale ($18 down to $15) and still counted, at its sale price. If you set Products on sale to Leave them out of product and quantity discounts in the plugin settings, sale items drop out of buy X, get Y rules too: the same cart then had only 2 items in the deal and got nothing free. With 6 glass items in the cart, the 2 cheapest were free.

4. Buy one, get the second at 50% off

For “second one half price”, enter Customers buy 1 and get 1 at 50. Our Eucalyptus in Stoneware Pot costs $34. With Repeat for larger quantities ticked, 2 pots cost $51 ($25.50 each), 3 pots $85 and 4 pots $102. The cart shows the 3-pot line as $28.33 each, because $85 doesn’t split evenly into cents, but the line total is exactly $85.

Variations of one product count together. With the same 50% rule on our Ribbed Ceramic Vase, a $28 small vase and a $50 large one in the cart, the $28 vase was half price and the $50 one full price.

Show the BOGO offer on the product page

A deal nobody sees before the cart doesn’t sell anything. The plugin shows the offers a product is part of above Add to cart, as a small label such as “Buy 1, get 1 at 50% off”. It’s on by default; the setting is Offers on product pages under WooCommerce > Settings > Discount rules > Settings.

Product page of a $34 eucalyptus pot with the offer Buy 1, get 1 at 50% off above the Add to cart button

The label uses the rule’s Name customers see, or the plugin’s own wording when that field is empty. A developer can change the markup by copying public/templates/product-promotions.php to yourtheme/dynamic-pricing-discount-rules/product-promotions.php.

One thing it doesn’t do: there is no “add 1 more jar to get one free” message in the cart for buy X, get Y rules. The plugin’s cart messages cover order discounts, free gifts, quantity discounts and bundle prices. If shoppers tend to stop at 2, make the label do the work, for example “Buy 2, get the 3rd free”.

Check these before your BOGO deal goes live

  • Overlapping rules. If a jar is in a BOGO rule and a category discount rule, When rules overlap in the plugin settings decides: the biggest discount (the default), the first rule in the list, or every rule one after another.
  • Coupons. By default discount rules still apply when a coupon is in the cart, so a 10% coupon comes off the BOGO prices. Untick Coupons in the settings to pause the rules while a coupon is used.
  • Sale items. Decide whether products already on sale should join the deal (see the cheapest-item example above).
  • Test 3 carts. Add the exact deal quantity, one fewer and double, and compare the totals with what you expect, like the table above.

FAQ

Does WooCommerce have a built-in BOGO option?

No. WooCommerce has percentage, fixed cart and fixed product coupons, and none of them can require items to be bought before one is given free. You need a plugin that adds buy X, get Y rules or buy X, get Y coupons.

Can I make a buy one get one free coupon without a plugin?

Only an imitation: a 100% coupon limited to 1 item. In our test it made a single jar free with nothing else bought, took the most expensive item off, and gave only 1 free item for 6 jars. That’s fine for a giveaway code, not for a BOGO deal.

Which item is free in a WooCommerce BOGO deal?

With a rule set to “the cheapest are discounted”, the lowest-priced items in the deal are free or reduced: a $9 jar before a $12 one, a $28 vase variation before a $50 one. A WooCommerce coupon limited to 1 item does the opposite and discounts the most expensive item.

Can I run a BOGO deal for a weekend or for some customers only?

Yes. Each rule has Starts on and Ends after dates under Conditions, so a Friday to Sunday deal switches itself on and off. Under For these customers you can limit it to guests, user roles or chosen customers, and the conditions also take a minimum spend on the rule’s products or first orders only.

Set up your first BOGO offer

Pick one product you often sell in pairs or threes, choose the deal (buy 2, get 1 free is the easiest to explain), and decide whether it should repeat. Then add 2, 3 and 6 to your own cart and check each total before you announce it. To try a BOGO rule first, use Try live demo on the Dynamic Pricing & Discount Rules page, where the buy 2 jars, get 1 free deal is already running. Updates and support are included, with a 14-day money-back guarantee, and if a deal doesn’t behave the way you expect, open a support ticket.

14-day money-back guarantee

Try it on your store, risk-free

Every plugin includes ongoing updates and support. If it isn’t right for your store, get a full refund within 14 days, no questions asked.