=== NBKB B2B Wholesale for WooCommerce ===
Contributors: nbkblabs
Tags: b2b, wholesale, wholesale pricing, role based pricing, b2b registration
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

B2B wholesale for WooCommerce. Role-based wholesale pricing for simple and variable products, automatic tax exemption, and custom B2B registration.

== Description ==

**NBKB B2B Wholesale for WooCommerce** by **NBKB Labs** enables store owners to sell wholesale directly to verified business customers on their existing WooCommerce store.

Set dedicated wholesale prices for simple and variable products, enforce minimum order quantities, offer automatic tax/VAT exemption, and register wholesale buyers through a dedicated B2B registration form.

### Key Features:

* **Simple Product Wholesale Pricing:** Assign dedicated wholesale prices to simple products with custom minimum quantity order thresholds.
* **Variable Product Wholesale Pricing:** Set independent wholesale rates for each product variation (size, color, material, etc.).
* **Automatic Tax & VAT Exemption:** Automatically exempt verified wholesale customers from sales tax and VAT at checkout, with an admin toggle to adjust as needed.
* **Wholesale Registration Form:** Add a dedicated registration form using the `[nbkb_b2b_registration]` shortcode.
* **High-Performance Order Storage (HPOS):** Native compatibility with WooCommerce custom order tables.
* **WooCommerce Cart & Checkout Blocks:** Full support for modern block checkout and classic shortcode checkout.
* **Clean Developer Hooks:** Extensible actions and filters for developers building custom integrations or extensions.

== Installation ==

1. Upload the `nbkb-b2b-wholesale` folder to the `/wp-content/plugins/` directory, or install directly via your WordPress Admin Plugins screen.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **WooCommerce > B2B Wholesale** to configure your wholesale settings.
4. Edit any Simple or Variable product in **Products > All Products** to set your wholesale prices.

== Frequently Asked Questions ==

= Does this plugin support variable products? =
Yes! You can configure independent wholesale prices and minimum order quantities for each product variation.

= How do customers become wholesale buyers? =
Customers can register directly using the `[nbkb_b2b_registration]` shortcode, or store administrators can manually assign the "Wholesale Customer" role under Users > All Users.

= Is this plugin compatible with WooCommerce HPOS? =
Yes, NBKB B2B Wholesale is built with native compatibility for High-Performance Order Storage (HPOS).

== Screenshots ==

1. Wholesale Pricing settings on Simple and Variable product edit panels.
2. B2B Wholesale Customer Registration form frontend layout.
3. Wholesale Price badge and strikethrough regular price display on catalog and single product pages.
4. B2B Wholesale Order Details, metadata snapshot, and Admin Orders table badges.

== Changelog ==

= 1.0.0 =
* Initial public release.
* Added role-based pricing for Simple and Variable products.
* Added automatic tax/VAT exemption for wholesale roles.
* Added [nbkb_b2b_registration] frontend registration shortcode.
* Added permanent B2B order metadata and line item savings tracking.
* Added full HPOS (Custom Order Tables) and Cart/Checkout Blocks compatibility.
