=== WholesaleNode for WooCommerce ===
Author: WholesaleNode for WooCommerce
Author URI: https://wholesalenode.com/
Contributors: b2bcommercekit
Tags: b2b, wholesale, wholesale pricing, wholesale registration, quote request, hide prices, product visibility, discount rules, woocommerce wholesale, b2b customers
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: woocommerce
WC requires at least: 8.0
WC tested up to: 10.9.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Essential B2B features for WooCommerce including wholesale registration, customer approval, hide prices, discount rules, product visibility, and quote requests.

== Description ==

WholesaleNode for WooCommerce gives you the core B2B features you need to get started with wholesale on WooCommerce — without paying anything. Every byte of data created in the free version is stored in the same database tables and meta keys as WholesaleNode for WooCommerce Pro, so upgrading to Pro is seamless with zero migration or data loss.

= What's Included (Free) =

**Wholesaler Role**
A single `wholesaler` user role is created on activation. It inherits all WooCommerce customer capabilities so checkout and account pages work normally out of the box.

**B2B Registration & Approval**
Add extra fields (Company Name, Phone, VAT number, etc.) to the WooCommerce registration form using a drag-and-drop field builder in the admin. New registrations are held as Pending until an admin approves or rejects them from the Users screen. Email notifications are sent on registration and on each approval decision.

**Hide Price for Guests**
Hide product prices and the Add to Cart button from logged-out visitors sitewide. Choose a replacement message, a login redirect, or an inline login popup. Optionally show a Request a Quote button in place of the price. Override the setting per product from the product edit screen.

**Product Visibility by Role**
Restrict individual products to logged-in users only, or to Wholesalers only. Guests and users without the required role are redirected to a configurable page. Visibility is set per product from the product edit screen.

**Basic Discount Rules**
Apply a percentage or fixed-amount discount per product for the Wholesaler role. Rules can target all products, specific products, or a saved Product List. Rules are prioritised and managed from a simple admin table under WholesaleNode → Discount Rules.

**Product Lists**
Create named collections of products by manual selection. Product Lists can be used as targets in Discount Rules and are stored in the same database table as Pro, so they carry over on upgrade.

**Quote Request Form**
Place the shortcode `[woowsn_quote_form]` on any page or post to display a quote request form. Customers can submit their name, email, phone, product, quantity, and a message. Submissions appear in the WholesaleNode → Quote Requests admin panel and trigger an admin email notification on each new submission.

= Key Features =

* B2B customer registration with admin approval
* Registration form builder
* Hide prices and Add to Cart for guests
* Product visibility by user role
* Wholesale discount rules
* Product Lists for targeting discounts
* Quote request form with admin management
* Seamless upgrade to WholesaleNode Pro

= Upgrade to Pro =

All data created in the free version is instantly available in Pro — no migration needed. Pro adds:

* Tiered and quantity-based pricing
* Multiple wholesale roles with individual permissions
* BOGO and fixed-cart discount types
* Company accounts and Pay on Account payment gateway
* Purchase order submission and approval workflow
* Sub-accounts with individual spending limits
* Points and Rewards loyalty system
* Admin–customer conversation threads on quotes
* Customer-specific pricing (per-user and per-product overrides)
* Tax exemption workflow
* Payment and shipping method restrictions by role
* Private catalogs with full category and user-group targeting
* Quote negotiation, counter-offers, and direct order creation from quotes
* Quick Order and Bulk Order forms
* Import and Export for rules, users, and product lists

🌐 Website: https://wholesalenode.com/
🌐 Documentation: https://wholesalenode.com/documentation/

= Try Before You Install =

Explore WholesaleNode with our live demo environments.

* [Free Demo](https://demo2.wholesalenode.com/)
* [Pro Demo](https://demo.wholesalenode.com/)

== Installation ==

1. Make sure WooCommerce is installed and active before activating this plugin.
2. Upload the ZIP file through the ‘Plugins > Add New > Upload’ screen in your WordPress dashboard.
3. Activate the plugin through **Plugins** in your WordPress admin.
4. Navigate to **WholesaleNode → Settings** to enable features and configure options.
5. To add custom fields to the registration form, go to **WholesaleNode → Registration Form**.
6. To create discount rules, go to **WholesaleNode → Discount Rules**.
7. To view quote submissions, go to **WholesaleNode → Quote Requests**.

== Frequently Asked Questions ==

= How do I approve or reject a new B2B registration? =

Go to **Users** in your WordPress admin. A **B2B Approval** column shows the status of each user. Use the quick-action links (Approve / Reject) inline in the user row, or filter by Pending using the status dropdown above the table.

= How do I add custom fields to the registration form? =

Go to **WholesaleNode → Registration Form** and use the drag-and-drop field builder to add, reorder, and configure fields. Supported field types include text, email, phone, select, textarea, and checkbox.

= How do I display the quote request form? =

Add the shortcode `[woowsn_quote_form]` to any page or post. The form can also be set to appear automatically on single product pages from **WholesaleNode → Settings → Quotes**.

= Can I hide prices from specific user roles, not just guests? =

Role-based and rule-based hide-price targeting is available in WholesaleNode for WooCommerce Pro.

= Can I create tiered pricing based on quantity? =

Quantity-based and tiered pricing is available in WholesaleNode for WooCommerce Pro.

= Where are quote submissions stored? =

All submissions are stored in a dedicated database table and are visible under **WholesaleNode → Quote Requests** in the admin. They are not stored in WooCommerce orders.

= Can I upgrade without losing my data? =

Yes. WholesaleNode Pro uses the same database tables and settings as the free version. Simply install Pro and your existing data will continue to work without migration.

== Screenshots ==

1. WholesaleNode dashboard showing all available B2B modules.
2. Registration Form Builder with drag-and-drop custom fields.
3. Hide Price settings with guest targeting and replacement options.
4. Discount Rules management with product and product list targeting.
5. Product Lists management for creating reusable product collections.
6. Quote Request management with customer submissions and approval workflow.
7. Global Settings page for configuring WholesaleNode features.
8. WholesaleNode Pro feature comparison and upgrade options.

== Changelog ==

= 1.0.0 - 2026-05-26 =
* Initial release.

== Upgrade Notice ==

= 1.0.1 =
* Updated plugin assets.
* Added screenshots.
* Improved documentation.
* Initial public release.

= 1.0.2 =
* WooCommerce 10.9.4 support