Buy X Get Y, Coupon Links and Auto Apply Coupons

3 min read Updated

With Shop Manager Pro a WooCommerce coupon can be a Buy X Get Y deal, such as buy 2 get 1 free or buy a shirt and get a cap at half price, with the free item put into the cart for the customer. A coupon can also work by link or apply by itself, so shoppers never have to type a code. This guide sets up a Buy X Get Y coupon step by step.

Before You Start

Step 1: Make a Buy X Get Y Coupon

  1. On the Coupons page, click Add coupon and type a code.
  2. In Discount type, pick Buy X Get Y.
  3. Type how many they Buy and how many they Get.
  4. In Off what they get, type 100 to make those items free, or 50 for half price.

A green line sums the deal up, for example “Buy 1, get 1 free”. The cheapest items are always the ones they get.

Buy X Get Y in the coupon window: discount type, Buy, Get, Off what they get and the summary, marked

Step 2: Choose the Products

  • What they buy: pick products, or categories. Leave both empty for any product.
  • What they get: pick products, or categories. Leave both empty to give items from what they buy: with buy 1 get 1, then 2 in the cart get the deal.
  • Add the free item to the cart by itself: buy a shirt, get a cap: when the shirt is in the cart, the cap is added for them. From a category, it picks one already in their cart, otherwise the cheapest in stock. With “any product” nothing can be picked, so the cart tells them how many more to add.
What they buy and what they get, and the switch that adds the free item to the cart for a Buy X Get Y coupon, marked

The cart tells the customer what is happening, for example “You get 1 Cap free with your Shirt”, or what to add to get the deal. Click Create coupon to save.

Any coupon, Buy X Get Y or not, can reach shoppers without a code. Under How shoppers get it:

  • Works by link: turn it on and copy the link. It is your shop’s address with ?coupon= and the code. Opening it adds the coupon to the cart, or as soon as something is added. The link works once the coupon is Active.
  • Applies by itself: the coupon goes into every cart that fits all its rules. A shopper who removes it keeps it off for that visit.
How shoppers get it: the Works by link switch with the coupon link, and the Applies by itself switch, marked

Tip: Applies by itself works well with a rule such as “At least this many items”, for example 5.00 off carts with 5 items or more. See Coupon Rules. A coupon that applies by itself never stops checkout when the cart already has an “Individual use only” coupon.

Buy X Get Y Examples

  • Buy one, get one free: Buy 1, Get 1, 100% off, any product.
  • Buy 2, get 1 free: Buy 2, Get 1, 100% off. With three items in the cart, the cheapest is free.
  • Buy a shirt, get a cap at half price: what they buy, the shirt; what they get, the cap; 50% off; the free item added by itself.

Next Steps

WooCommerce’s own discount types are listed in the WooCommerce coupon management guide.

Still stuck?

A developer who works on Shop Manager answers every ticket.

Open a ticket