N
NBKB Labs
Official Documentation & Architecture Guide

NBKB B2B Wholesale Pro for WooCommerce

The complete enterprise expansion suite that transforms your WooCommerce store into an automated, high-volume wholesale commerce engine.

Version 1.0.0 WooCommerce 7.0 – 11.x Ready HPOS Native Compatible Cart & Checkout Blocks Ready

1. Overview & Architecture

NBKB B2B Wholesale Pro is the commercial add-on designed for fast-growing distributors, manufacturers, and direct-to-business merchants. It seamlessly expands the free core plugin (nbkb-b2b-wholesale) with enterprise-grade wholesale features:

📈

Tiered Volume Pricing

Set dynamic quantity price breaks (% discount, fixed price, or fixed savings) for simple and variable products with live table calculations.

👥

Multi-Tier Customer Groups

Create distinct wholesale buyer levels (VIP Wholesale, Distributors, Tier 1 Partners) with tailored storewide discount percentages.

Registration Approvals

Prevent unauthorized retail access. Review company credentials, Tax IDs, and approve or reject wholesale applicants with automatic email notices.

💬

Request a Quote Engine

Enable quote basket inquiries on individual products or catalogs. Review inquiries in admin and convert to official invoices with 1 click.

🔒

Order Restrictions

Enforce minimum order subtotal requirements, minimum carton quantities, and conditionally show/hide payment gateways by user role.

Unified Clean Admin

Zero admin clutter. All Pro management tabs are seamlessly embedded directly inside the single WooCommerce > B2B Wholesale menu.

Unified Architecture Guarantee: Pro never pollutes your WordPress admin bar or adds redundant menus. All settings, approval queues, and quote requests are organized inside Lite's single settings hub (admin.php?page=nbkb-b2b-settings).

2. System Requirements & Compatibility

NBKB B2B Wholesale Pro is engineered to modern WordPress and WooCommerce standards, ensuring blazing-fast query execution and future-proof stability.

Component Minimum Requirement Recommended / Tested
WordPress Version 6.2+ Version 6.7+ / 7.0+
WooCommerce Version 7.0+ Version 9.5+ / 11.0+ (HPOS Native)
PHP Version PHP 7.4 PHP 8.1, 8.2, 8.3, 8.4, 8.5
Core Dependency NBKB B2B Wholesale (Free) Version 1.0.0+ (Available on WordPress.org)
Order Storage Traditional Posts or HPOS High-Performance Order Storage (Custom Order Tables)
Cart & Checkout Classic Shortcodes & Blocks WooCommerce Cart & Checkout Blocks Native

3. Installation & Dependency Guide

Important Core Dependency: NBKB B2B Wholesale Pro is an extension of the free core plugin. You must have the free core plugin installed and active.

Step-by-Step Installation:

  1. Install the Free Core Plugin

    In your WordPress dashboard, navigate to Plugins > Add New. Search for NBKB B2B Wholesale and click Install Now, then Activate. (Alternatively, download it from WordPress.org).

  2. Upload the Pro ZIP File

    Go to Plugins > Add New > Upload Plugin. Choose the nbkb-b2b-wholesale-pro.zip file from your order confirmation email or NBKB Labs account.

  3. Activate Pro Plugin

    Click Install Now, and once uploaded, click Activate Plugin.

  4. Access B2B Wholesale Control Center

    Navigate to WooCommerce > B2B Wholesale in your left admin sidebar. You will notice new Pro tabs added: Roles, Approvals, Quotes, Order Rules, and License.

4. License Activation & Automatic Updates

Activating your license unlocks automatic, 1-click background updates directly within your WordPress Plugins screen whenever a new version is released.

  1. Locate Your License Key

    Check your purchase confirmation email from NBKB Labs (or log into your customer portal) to copy your Freemius License Key.

  2. Navigate to the License Tab

    In your WordPress dashboard, go to WooCommerce > B2B Wholesale > License.

  3. Activate Your Store

    Paste your License Key into the input box and click Activate License.

Once verified, your store receives background update notices alongside standard WordPress plugins. You can update safely with a single click.

5. Tiered Bulk Quantity Pricing

Tiered pricing incentivizes wholesale customers to order in larger quantities by automatically reducing unit prices as order volume increases.

Configuring Tiers on a Simple Product:

  1. Edit any product in Products > All Products.
  2. Under Product Data > General, locate the B2B Tiered Volume Discounts [PRO] box.
  3. Click + Add Tier to create discount rules:
    • Min Qty: The quantity threshold to trigger the discount (e.g., 10).
    • Discount Type: Select from % Discount, Fixed Unit Price ($), or Fixed Discount ($).
    • Value: Enter the numeric discount amount (e.g., 15 for 15% off).
  4. Repeat to add multiple tiers (e.g., 10 units = 15% off, 50 units = 25% off, 100 units = 8/unit).
  5. Click Update to save the product.

Configuring Tiers for Variable Products:

For variable products, expand any variation in the Variations tab. Each individual variation includes its own independent tiered pricing table, allowing you to set specific bulk volume thresholds per SKU.

Frontend Live Quantity Price Table:

When a logged-in wholesale customer views the product page, an interactive pricing table automatically displays above the Add to Cart form. As the customer increases or decreases the quantity selector, the table dynamically highlights the active tier and recalculates the total.

6. Custom Wholesale Customer Groups

Not all wholesale buyers are the same. Pro comes pre-configured with industry-standard wholesale customer tiers:

Role Key Role Display Name Typical Usage Storewide Discount
nbkb_b2b_wholesale Wholesale Customer (Core) Standard approved B2B accounts Base Wholesale Price
nbkb_b2b_tier_1 Tier 1 Partner (Pro) High-frequency regular B2B accounts Configurable Storewide %
nbkb_b2b_vip VIP Wholesale (Pro) Key commercial partners & high volume Configurable Storewide %
nbkb_b2b_distributor Distributor (Pro) Regional distributors & stockists Configurable Storewide %

Managing Global Role Discounts:

Navigate to WooCommerce > B2B Wholesale > Roles. Here you can define global catalog-wide discount percentages for each customer group. If a product does not have an explicit wholesale price entered, the role's global discount percentage is automatically deducted from the retail price.

7. Registration Approval Workflow & Fraud Prevention

Protect your wholesale margins from retail shoppers and unauthorized sign-ups with our built-in manual verification workflow.

Enabling Registration Approvals:

  1. Go to WooCommerce > B2B Wholesale > Approvals.
  2. Check the box: Enable Manual Admin Approval for B2B Registrations.
  3. Click Save Changes.

How the Workflow Functions:

8. Request a Quote Inquiry Engine

B2B trade often involves custom negotiations. The built-in Quote Engine allows wholesale buyers to request quotes on products, build a quote inquiry basket, and submit customized project requests.

Enabling Quote Requests:

  1. Go to WooCommerce > B2B Wholesale > Quotes.
  2. Enable the global switch: Enable Request a Quote for Wholesale Customers.
  3. Optionally enable or disable quotes on specific products via the product edit screen.

Managing Inquiries & 1-Click Order Conversion:

9. Cart Order Rules & Gateway Visibility

Control checkout thresholds and payment terms to enforce profitable B2B operations.

Available Controls (under Order Rules tab):

10. Shortcodes Reference

Shortcode Description Example Placement
[nbkb_b2b_register] Embeds the complete B2B wholesale registration form with company name, business phone, and Tax ID fields. Dedicated page: /wholesale-registration/
[nbkb_b2b_quote_basket] Displays the interactive wholesale quote inquiry basket and submission form. Dedicated page: /quote-inquiry/

11. Developer Hooks & Filters

NBKB B2B Wholesale Pro provides clean WordPress action and filter hooks for custom theme and custom code integration.

Core Filter Hooks:

// 1. Modify the calculated wholesale price programmatically
add_filter( 'nbkb_b2b_calculated_product_price', function( , , ,  ) {
    // Custom business logic
    return ;
}, 10, 4 );

// 2. Add custom wholesale customer roles to the recognition list
add_filter( 'nbkb_b2b_wholesale_roles', function(  ) {
    [] = 'custom_corporate_role';
    return ;
} );

// 3. Customize minimum order restriction error notice
add_filter( 'nbkb_b2b_min_order_error_message', function( ,  ) {
    return sprintf( 'Wholesale orders require at least $%s.', number_format( , 2 ) );
}, 10, 2 );

Core Action Hooks:

// Triggered when a new wholesale registration applicant is submitted
add_action( 'nbkb_b2b_user_registered_pending', function( ,  ) {
    // Send custom Slack or CRM webhook notification
}, 10, 2 );

// Triggered when a pending wholesale applicant is approved by admin
add_action( 'nbkb_b2b_user_approved', function(  ) {
    // Sync contact to ERP or newsletter
} );

// Triggered when a customer submits a new quote request
add_action( 'nbkb_b2b_quote_submitted', function( ,  ) {
    // Dispatch custom internal sales alert
}, 10, 2 );

12. Troubleshooting & FAQ

Q: Wholesale prices or tiered tables do not appear on product pages.

A: Wholesale prices and tiered tables are strictly visible to users who are logged in with an authorized wholesale customer role (e.g., Wholesale Customer, VIP Wholesale, Distributor). Guest visitors and retail customers will only see standard retail pricing.

Q: I activated Pro, but I see a warning about Lite.

A: Pro requires the free core plugin (nbkb-b2b-wholesale). Simply install and activate NBKB B2B Wholesale from your WordPress dashboard under Plugins > Add New.

Q: Does this plugin work with WooCommerce HPOS (High-Performance Order Storage)?

A: Yes! NBKB B2B Wholesale and the Pro add-on are 100% native HPOS compatible, declaring official compatibility and using WooCommerce CRUD order methods exclusively.

Q: Are the new WooCommerce Cart and Checkout Blocks supported?

A: Absolutely. Tier pricing and wholesale cart rules execute at the cart calculation hook layer, ensuring full compatibility with both classic shortcodes and the modern block checkout.

13. Changelog & Support

Version 1.0.0 (Official Release)


Official Support & Helpdesk:

Need assistance or have questions? Our support team is ready to help: