=== Bogofy – Buy One Get One for WooCommerce ===
Contributors: manzurahammed
Tags: woocommerce, bogo, buy one get one, free gift, discount
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create Buy One Get One (BOGO) free-gift offers for WooCommerce. Add a free product to the cart automatically when customers buy qualifying items.

== Description ==

Buy One Get One lets you run simple, effective BOGO promotions in your WooCommerce store. When a customer buys the products you choose, a free item is added to their cart automatically — no coupon codes required.

= Rule types =

* **Buy X Get X Free** — Buy N of a product and get M of the same product free.
* **Buy X Get Y Free** — Buy a trigger product and get a different product free.

= Product selection =

* Apply to specific products
* Apply to all products

= Display options =

* Show BOGO messages on product pages
* Show badges on shop and category pages
* Customize the label shown next to free items in the cart
* Customize the cart notice shown when a deal is applied

= Works with WooCommerce =

* Compatible with HPOS (High-Performance Order Storage)
* Compatible with the Cart and Checkout Blocks

= Built for store owners =

* **No tracking** — the plugin does not collect or send any data
* **Modern admin panel** — a clean React-based interface
* **Clean code** — follows WordPress coding standards

== Installation ==

1. Upload the `bogofy` folder to the `/wp-content/plugins/` directory, or install it from the Plugins screen in WordPress.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Make sure WooCommerce is installed and active.
4. Go to 'Buy One Get One' in the WordPress admin menu and create your first BOGO rule.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and active for the plugin to work.

= Does this plugin work with variable products? =

Yes. Both simple and variable products are supported as trigger and gift products.

= Do customers need a coupon code? =

No. When the cart qualifies, the free item is added and priced at zero automatically.

= How do I turn everything off temporarily? =

Use the "Enable plugin" toggle on the Settings screen to switch all BOGO functionality off without deleting your rules.

== Screenshots ==

1. Dashboard overview showing active rules and stats.
2. Rules listing with status toggles.
3. Create rule wizard.
4. Preview Rules.
5. Settings screen for labels and display options.

== Changelog ==

= 1.0.0 =
* Initial release.
* Buy X Get X Free and Buy X Get Y Free rule types.
* Apply to specific products or all products.
* Automatic free items added to the cart.
* Product page messages, shop badges, and customizable cart labels.
* React-based admin panel.
* HPOS and Cart/Checkout Blocks compatibility.

== Upgrade Notice ==

= 1.0.0 =
Initial release of Buy One Get One.
