=== Wholesale Engine – B2B & Wholesale Plugin for WooCommerce with Wholesale Pricing, Dynamic Pricing, Bulk Order Form ===
Contributors: hasandev
Tags: wholesale, b2b, woocommerce wholesale, wholesale prices, dynamic pricing
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
Requires Plugins: woocommerce
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce wholesale plugin for B2B & B2C stores: wholesale prices, dynamic & tiered pricing, catalog mode, bulk order form and request a quote.

== Description ==

**Wholesale Engine is the complete WooCommerce wholesale plugin for running a B2B, B2C or hybrid B2B + B2C store — wholesale prices, dynamic pricing rules, a drag-and-drop registration form, bulk ordering, request a quote and more.**

Turn your WooCommerce shop into a powerful wholesale store. Wholesale Engine gives specific user roles their own wholesale pricing, lets you build advanced discount rules, hide prices from guests, collect wholesale registrations, accept bulk orders, negotiate quotes, and sell to retail customers — all from one plugin, with no code required.

👉 Everything below is included in the **free** Wholesale Engine plugin.

= ✅ What you can do with Wholesale Engine =

* ✅ Sell to **B2B, B2C, or hybrid B2B + B2C** customers from a single store
* ✅ Create **unlimited wholesale user roles** with their own pricing and rules
* ✅ Add **wholesale prices** to simple and variable products
* ✅ Build **dynamic pricing & discount rules** (product, category, role, cart, quantity)
* ✅ Show a **tiered "buy more, save more"** pricing table on product pages
* ✅ Turn on **catalog mode** and **"login to view price"**
* ✅ Hide stock, hide products, or make the whole store **private**
* ✅ Collect customers with a **drag-and-drop wholesale registration form builder**
* ✅ Approve applicants manually, automatically, or by email verification
* ✅ Offer a **bulk order form** and savable **purchase lists**
* ✅ Let customers **request a quote** and negotiate in a built-in **Deal Room**
* ✅ Allow **sub-accounts** so a company can add team members
* ✅ Give customers a **store credit wallet** to pay at checkout
* ✅ Manage everything from a clean, modern **React-powered dashboard**

= 💼 Built for every kind of store =

**B2B (Wholesale only)** — lock the store to approved wholesale buyers, hide prices and block checkout for everyone else.

**B2C (Public only)** — run a normal retail store and switch wholesale features off when you don't need them.

**B2B + B2C Hybrid** — serve wholesale and retail customers side by side. Retail shoppers see normal prices; logged-in wholesale customers automatically see their wholesale pricing.

= Dynamic Pricing & Discount Rules =

Wholesale Engine ships with a flexible rules engine so you can set up exactly the wholesale pricing and discounts your store needs:

* ✔ **Product / role-based wholesale pricing** — a baseline discount per wholesale role, applied automatically with zero per-product setup
* ✔ **Quantity-based / tiered pricing** — bulk discounts that reward larger orders
* ✔ **Cart discounts** — reward customers based on cart subtotal or quantity
* ✔ **Payment method discounts** — incentivise specific gateways
* ✔ **Shipping rules** and **tax rules** for wholesale customers
* ✔ **Minimum & maximum order quantity** controls
* ✔ **Hidden price / "price on request"** with an optional quote button
* ✔ **Non-purchasable products** for catalog-only browsing
* ✔ Apply discounts from the **regular price or the sale price** — your choice

Prices are calculated once per request from a single source of truth, so wholesale, sale and tiered pricing never double-discount.

= Wholesale User Roles =

Create unlimited wholesale roles (Distributor, Retailer, Reseller, and more). Each role can have its own baseline discount, tax display (price including or excluding tax), coupon rules and pricing. Customers automatically see the right price the moment they log in, and you can auto-migrate buyers into a wholesale role after a qualifying order.

= Wholesale Registration Form Builder =

Win and approve wholesale customers with a beautiful, **drag-and-drop registration form builder** — no code needed:

* Visual builder with a live, what-you-see-is-what-you-ship preview
* Add custom fields, set required fields, and arrange columns
* Layout templates: **registration only, login + registration (split), tabbed, or popup**
* B2B / B2C **customer type** selection that can gate fields
* **Approval workflow**: manual approval, auto-approve, or verify email first
* Built-in **spam protection** with reCAPTCHA and a honeypot trap
* Full **design controls** — typography, colors, and button styling for both the login and registration forms, with no custom CSS
* Ready-to-use **shortcodes** for any page

= Catalog Mode, Private Store & Price Visibility =

Control exactly who can see prices and buy:

* **Catalog mode** — make products non-purchasable across the store
* **Login to view price** — hide prices from guests with a custom message and login link
* **Hide stock** completely, or only hide the quantity, from B2C customers
* **Hide all products** from guests and/or B2C users
* **Private store** — redirect logged-out visitors away from the store, with a URL whitelist
* Custom **wholesale and regular price suffixes** (e.g. "excl. VAT")
* Show wholesale price as a **range, minimum, or maximum** on listing pages

= Request a Quote & Deal Room =

Add a **Request a Quote** button to your store and negotiate like a real B2B business:

* Customers add products to a quote and send a request
* A built-in **Deal Room** in My Account keeps the whole conversation in one thread
* The store admin sends **custom offers**; once the customer accepts, the agreed pricing loads straight into the cart for checkout
* Choose who sees the quote button: **everyone, logged-in customers, or wholesale roles only**
* Optional **quote-only roles** that replace "Add to Cart" with "Add to Quote" and hide checkout entirely

= Bulk Order Form & Purchase Lists =

Make reordering effortless for wholesale buyers:

* A fast **bulk order form** to add many products to the cart at once
* **SKU and product search** built in
* Savable **purchase lists** customers can reuse and re-order in one click
* Restrict bulk ordering to specific wholesale roles

= Sub Accounts =

Let a wholesale company add **team members (sub-accounts)** under one main account. The account owner controls each member's permissions — such as placing orders or requesting quotes — and monitors their activity.

= Store Credit Wallet =

Give customers a **digital wallet / store credit** they can top up and spend at checkout as a payment method. Admins can adjust balances and review transactions.

= Emails & Feature Control =

* Ready-made, customisable **transactional email templates** with a built-in designer
* A central **Features** screen to enable or disable major modules (Registration, Bulk Order, Sub Accounts, Deal Room, Wallet, reCAPTCHA) in one click

= Why Wholesale Engine? =

* 🧩 **All-in-one** — wholesale pricing, registration, bulk orders, quotes, sub-accounts and wallet in a single plugin
* ⚡ **WooCommerce-native** — every effect runs through documented WooCommerce hooks, so your theme is never modified
* 🛒 Works with **simple and variable products**
* 🎨 **No code required** — design forms and rules from a modern admin UI
* 🌐 **Theme-agnostic** and translation-ready

== Installation ==

= Minimum Requirements =

* WordPress 6.4 or greater
* WooCommerce 7.0 or greater
* PHP version 7.4 or greater

= Automatic installation =

1. Log in to your WordPress dashboard and go to **Plugins → Add New**.
1. Search for "**Wholesale Engine**".
1. Click **Install Now**, then **Activate**.
1. Open the **Wholesale Engine** menu to set up roles, pricing and settings.

= Manual installation =

1. Download the plugin ZIP file.
1. Go to **Plugins → Add New → Upload Plugin** and choose the ZIP.
1. Click **Install Now**, then **Activate**.
1. Make sure **WooCommerce** is installed and active.

= Getting started =

1. Create one or more **wholesale roles** (e.g. Distributor, Retailer).
1. Add **pricing rules** or a role baseline discount.
1. Build your **registration form** and add its shortcode to a page.
1. Choose your **store mode** (B2B, B2C or Hybrid) under Settings.

== Frequently Asked Questions ==

= Can I add Wholesale Engine to an existing WooCommerce store? =

Yes. Wholesale Engine is built specifically for WooCommerce. Install it on any existing store and start adding wholesale prices and roles without rebuilding anything.

= Is this only a B2B plugin, or can I run B2C too? =

Both. Use the **Store Mode** setting to run a B2B-only store, a B2C-only store, or a hybrid that serves wholesale and retail customers at the same time.

= Can I hide wholesale prices from guests and regular customers? =

Yes. Use **catalog mode**, **login to view price**, or a fully **private store** to hide prices, stock or your entire catalog from guests and B2C users.

= Does it work with variable products? =

Yes. Wholesale pricing applies to both simple products and variable product variations, including the price range shown on listing pages.

= Can I set quantity-based or tiered pricing? =

Yes. Create tiered "buy more, save more" rules and display a quantity pricing table right on the product page.

= Can customers request a quote? =

Yes. Add a **Request a Quote** button, let customers send requests, and negotiate with custom offers in the built-in Deal Room. Accepted offers flow straight to checkout.

= Do I need to write any code? =

No. Roles, pricing rules, the registration form, and all settings are managed from a modern, no-code admin dashboard.

= Does it require WooCommerce? =

Yes. WooCommerce must be installed and active.

== Screenshots ==

1. Wholesale dashboard overview.
2. Dynamic pricing & discount rule editor.
3. Wholesale user roles management.
4. Drag-and-drop registration form builder with live preview.
5. Registration form design controls (typography, colors, buttons).
6. Catalog mode, price visibility and store settings.
7. Request a Quote & Deal Room negotiation.
8. Bulk order form and purchase lists.
9. Tiered "buy more, save more" pricing table on the product page.
10. Feature control center.

== Changelog ==

= 1.0.0 =
* Initial release of Wholesale Engine — the all-in-one B2B & wholesale plugin for WooCommerce.
* Wholesale user roles with automatic, role-based pricing.
* Dynamic pricing & discount rules: product, role, quantity/tiered, cart, payment, shipping and tax rules, plus min/max order quantity, hidden price and non-purchasable products.
* Tiered "buy more, save more" pricing table on product pages.
* Catalog mode, login to view price, hide stock, hide products and private store with URL whitelist.
* Store modes: B2B, B2C and hybrid B2B + B2C.
* Drag-and-drop wholesale registration form builder with layout templates, customer types, approval workflow, reCAPTCHA, and full design controls.
* Request a Quote with a built-in Deal Room for offers and negotiation.
* Bulk order form and savable purchase lists.
* Sub-accounts with per-member permissions.
* Store credit wallet payment method.
* Customisable transactional emails and a central feature-control screen.

== Upgrade Notice ==

= 1.0.0 =
First public release of Wholesale Engine for WooCommerce.
