Select one or more tags, then press “Search Plugins”

Find Plugin with any / all of the selected criteria
Search Plugin

SaleMint — Buy One Get One For WooCommerce Wordpress Plugin - Rating, Reviews, Demo & Download

SaleMint — Buy One Get One For WooCommerce Preview Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

SaleMint — Buy One Get One adds “buy X, get Y” offers to WooCommerce products. You can run a different offer on each product, give away the same product or a different one, make the free item fully free or a percentage off, schedule an offer to start and end on set dates, and stop other coupons from stacking on top of it.

Here is how it works for a shopper. They open a product page and see “Buy 2, get 1 free!” under the price. They add two to the cart, and a third unit appears as its own line, priced at 0, with the original price struck through. If they drop back to one, the free unit disappears. If they try to delete the free line or change its quantity, it goes back to what they earned. At checkout the free line is saved in the order with an “Offer: Buy 2, get 1 free!” note, which shows on the thank-you page, in My Account, in the order emails and on the admin order screen.

You set it up in two places you already know: a BOGO tab under WooCommerce > Settings, and a BOGO tab in the Product data box when you edit a product.

What you can sell with it

  • “Buy 1, get 1 free” on a T-shirt, where the free unit is the same size and colour the customer picked.
  • “Buy 3 candles, get 1 free” on one product, while the rest of the store keeps a “Buy 1, get 1” default.
  • “Buy a laptop, get a laptop sleeve free”, where the free item is a different product (or one variation of it).
  • “Buy one, get the second at 50% off”, or any other percentage from 1 to 99.
  • A Black Friday offer that starts on the Friday and ends on Monday night, and switches itself on and off.

A store-wide default, with per-product control

Under WooCommerce > Settings > BOGO you set the default rule: how many units the customer buys and how many they get free, plus whether the free item is fully free or a percentage off. There is also a master switch. Turn it off and every offer stops at once, but your product settings stay saved, so you can turn them back on later.

The default never applies to a product by itself. You choose which products have an offer by ticking Enable BOGO offer in the product’s BOGO tab. Each product can then use the global quantities or its own (Buy 3, get 1, for example), and the global discount or its own.

You can also turn BOGO on or off for many products at once from Quick Edit and Bulk Edit on the Products list. A BOGO column shows which products have an offer and whether they use the global or custom quantities (“Global”, “Custom 3+1”), and whether the offer is scheduled or has ended. A BOGO enabled filter lists only the products that have one.

Same product or a different product

For each product, choose what the customer gets for free:

  • Same product: another unit of what they bought. On a variable product, it’s the same variation, so someone who buys a large red shirt gets a large red shirt free.
  • A different product: one product you pick from a search box. It can be a simple product or one specific variation (“buy any colour of this hoodie, get the black beanie free”).

If the free product is later deleted, trashed or can no longer be bought, the trigger product keeps selling at its normal price and no free item is added. The product’s BOGO tab shows a warning so you know to fix it. The plugin never quietly switches to giving away the trigger product instead.

How the cart works

The free item is a real cart line, separate from the paid units, so customers can see exactly what they got. The plugin keeps it in step with the cart every time the cart changes:

  • Multiples are counted. With “Buy 2, get 1”, five paid units earn two free units. Remainders round down.
  • Free units don’t count toward the offer. Two paid units with “Buy 1, get 1” give two free units, not four.
  • Variations count together. On a variable product, one red and one blue shirt add up to two units toward the offer. When the paid units span several variations, the free units copy the cheapest ones first.
  • Stock is respected. If the free product is out of stock, the customer is told and the paid item stays in the cart at full price. If only some free units are in stock, the plugin adds those and says so. Products that allow backorders are added normally.
  • The free line is locked. Its quantity shows as plain text and there’s no remove link. If a customer removes it anyway, it comes back with a short note that free items are part of the offer.
  • Checkout checks again. Free lines are recounted right before payment, so a tampered cart can’t check out more free items than it earned.

Customers get a short notice when something changes, such as “You got 1 × Small Wool Plate free!”, and they only see it once.

Free or a percentage off

The “free” item can be completely free, or discounted by a percentage (1 to 100). The percentage comes off the product’s current price, sale price included, and is rounded to your store’s decimal setting. Taxes and shipping are worked out by WooCommerce in the usual way. The free line still ships, so it still counts toward shipping weight.

In the cart a fully free line shows the original price struck through and a “Free” badge. A discounted line shows the original price, the new price and a label such as “50% off”.

Offer start and end dates

Each product can have an optional Offer starts and Offer ends date. The offer starts at 00:00 on the start date and ends at 23:59:59 on the end date, in your store’s timezone (Settings > General), not the server’s. Set only a start date to run it with no end, or only an end date to run it from now until then.

When an offer ends, any free item still sitting in a cart is taken out on the next cart update, and the customer is told the offer has ended. Orders placed before the end keep their free item. Nothing depends on WP-Cron, so it works on sites with cron turned off.

Stop coupons from stacking

A 20% coupon on top of a free item is the quickest way for a BOGO promotion to lose money. With Block coupons when a BOGO offer is applied on (it’s on by default), customers can’t apply a coupon while their cart holds a free item. They see “Coupons can’t be combined with the Buy One Get One offer in your cart.”

It works in either order. If the customer applied a coupon first and then earned the free item, the coupon is removed and they’re told why. If they later drop below the offer quantity, they can enter coupons again.

Some codes should always work, such as a free-shipping code. Add those to Allowed coupons. The field searches your coupons as you type, so it stays quick even with thousands of coupons.

Offer message on the product page

Shoppers can’t take an offer they don’t know about. The plugin shows a short message on the single product page, in one of four styles:

  • Simple: “Buy 2, get 1 free!” or “Buy 1, get 1 at 50% off!”
  • Gift: “Buy 1 and get 1 × Laptop Sleeve free!”, with a link to the free product.
  • Badge: the same text in a highlighted box.
  • Minimal: “BOGO offer: 2+1”.

Choose where it goes: above the add to cart button, below it, or below the price. The settings page shows a live preview of the template you pick. Each product can use the global template, pick a different one, or hide the message.

The message only appears while the offer is actually running and the free item is in stock, so you never advertise something the cart can’t give. It works in classic themes and in block themes (next to the Add to Cart Form block or under the Product Price block).

Cart and Checkout blocks

Everything above works the same in the Cart, Checkout and Mini-Cart blocks as in the classic cart. In the blocks, a free line is named “Product – Free” or “Product – 50% off”, the regular price is struck through, and there’s no quantity selector or remove link. The plugin’s notices show up as normal block notices.

Express payment buttons such as Apple Pay and Google Pay in the block cart include the free line in the total, because the cart is calculated before payment.

Orders, emails and stock

When the order is placed, each free line keeps its “Offer” note, and the plugin saves the original price, the discount and the product that earned it. Customers see the note on the thank-you page, in My Account and in their order emails. Packing slip and invoice plugins that read the normal order items show the free line with no extra setup.

On the admin order screen, free lines get a Free item badge (or “BOGO item: 50% off”) and the original price, so whoever packs the order knows it wasn’t charged by mistake. When you open the refund form on an order that has free items, a reminder points out that refunding the paid products doesn’t touch the free ones, so you can decide what to do with them.

Stock goes down for free items like any other line, and comes back when an order is cancelled or a refunded item is restocked. That’s all WooCommerce core; the plugin doesn’t change it. Free lines in orders you edit in the admin keep their saved price, and the plugin doesn’t re-run offers on them.

If a customer clicks Order again, a free line never comes back as a paid one. It returns as a free line and stays only if the new cart still earns it.

Compatibility

  • Classic cart and checkout, and the Cart, Checkout and Mini-Cart blocks.
  • High-Performance Order Storage (HPOS) and legacy order storage. Orders are only read and written through the WooCommerce CRUD API.
  • Simple and variable products. Grouped and external products can’t be added to the cart as one line, so they don’t get a BOGO tab.
  • Translation-ready, with the salemint-buy-one-get-one-for-woocommerce text domain.

For developers

Templates can be overridden from your theme. Copy a file from the plugin’s templates/ folder to yourtheme/salemint-bogo/, keeping the same sub-folders:

  • single-product/offer-message.php: the product page message.
  • cart/free-item-price.php: the struck-through price and badge in the classic cart.
  • admin/order-item-badge.php and admin/order-refund-warning.php: the admin order screen.

Change the theme folder with the salemint_bogo_theme_template_path filter.

To tell a free line from a paid one in your own code, use salemint_bogo_is_free_cart_item( $cart_item ) for cart items and salemint_bogo_is_free_order_item( $item ) for order items.

Useful filters:

  • salemint_bogo_product_rule: change or remove the offer that applies to a product.
  • salemint_bogo_rule_is_active: decide whether a scheduled offer is running right now.
  • salemint_bogo_free_product_id: change which product is given away.
  • salemint_bogo_earned_free_qty: change how many free units a cart earns.
  • salemint_bogo_free_item_price: price the free line yourself.
  • salemint_bogo_discount_types: register extra discount types.
  • salemint_bogo_block_coupon and salemint_bogo_prefer_coupon: decide per coupon whether it’s blocked, or let the coupon win over the free item.
  • salemint_bogo_message_templates and salemint_bogo_offer_message: add message templates or change the final message HTML.
  • salemint_bogo_order_item_offer_text: the “Offer” text saved on order lines.
  • salemint_bogo_supported_product_types: allow the BOGO tab on other product types.

Actions:

  • salemint_bogo_free_item_added, salemint_bogo_free_item_updated and salemint_bogo_free_item_removed: a free line changed in the cart.
  • salemint_bogo_order_free_items_recorded: free lines were saved to a new order.
  • salemint_bogo_product_settings_saved: a product’s BOGO tab was saved.

Screenshots

  1. The offer message on the product page, using the Gift template.

    The offer message on the product page, using the Gift template.

  2. The free item added to the cart automatically, with a notice telling the customer.

    The free item added to the cart automatically, with a notice telling the customer.

  3. The Cart block: the free line has the original price struck through, a "Save" amount, a fixed quantity and no remove link.

    The Cart block: the free line has the original price struck through, a “Save” amount, a fixed quantity and no remove link.

  4. The Checkout block order summary with the free line priced at 0.

    The Checkout block order summary with the free line priced at 0.

  5. The order received page. The free line carries an "Offer: Buy 1, get 1 free!" note.

    The order received page. The free line carries an “Offer: Buy 1, get 1 free!” note.

  6. The admin order screen: the free line shows a "Free item" badge and its original price.

    The admin order screen: the free line shows a “Free item” badge and its original price.

  7. WooCommerce > Settings > BOGO: the master switch, the default quantities, the default discount and the coupon blocking options.

    WooCommerce > Settings > BOGO: the master switch, the default quantities, the default discount and the coupon blocking options.

  8. The offer message settings: template, position and a live preview.

    The offer message settings: template, position and a live preview.

  9. The BOGO tab in the Product data box: quantities, free item, discount, offer dates and message.

    The BOGO tab in the Product data box: quantities, free item, discount, offer dates and message.


Reviews & Comments