Configuration v1.0.0

Settings & Configuration

All global settings live under WholesaleNode → Settings in your WordPress admin. The Features tab (under Tools) is the master on/off switch for every module. Each module also has its own settings sub-tab.

Good to know: Disabling a module from Tools → Features removes all its PHP classes, JavaScript assets, and admin menu items from the load path — zero performance overhead. The module's data (rules, records, history) stays in the database and is fully restored when you re-enable.

Features Tab

Master toggle for all 20 modules. Disable anything you don't need — no performance cost for unused modules.

Per-Module Settings

Each module gets its own settings sub-tab with all its configurable options. Changes take effect immediately.

Admin Capabilities

Delegate specific B2B admin sections to non-admin users with granular view, create, edit, and delete permissions.

Data Management

Export plugin data to JSON for backup. Toggle "Remove data on uninstall" for clean removal. Import settings from another installation.

Settings Tabs Reference

TabWhat you configure here
FeaturesEnable/disable each module. Located under Tools → Features. Changes take effect immediately without deactivating the plugin.
Credit SettingsDefault credit limit, payment terms (Net 7–90), overdue behaviour, interest rate, eligible roles for Payment Credit gateway, PO number field.
Payment Credit → ApplicationsEnable self-service credit applications from My Account, set maximum requestable limit, and configure application eligibility criteria.
PO Approval SettingsDefault action (auto-approve vs require), approval expiry days, PO number requirement, notification settings, default payment terms for PO-to-order conversion.
Points & RewardsEarning rates, role multipliers, redemption rate, minimum balance, expiry, sub-account sharing percentage, milestone configurations, coupon/sale item restrictions.
Quote SettingsRequire login, allow negotiation, max rounds, validity days, button placement, eligible roles.
Registration SettingsRegistration form fields, approval workflow, auto-assign role, notification emails.
Sub-Account SettingsMax sub-accounts per parent, invite link validity, credit sharing, permission roles configuration.
Admin CapabilitiesDelegate access to specific B2B admin sections per user. Granular view, create, edit, and delete permissions per module.
Data & PrivacyExport plugin data, remove data on uninstall toggle, data retention settings.

Global Settings That Apply Across Modules

SettingDescriptionDefault
Remove Data on UninstallWhen deleting the plugin, also delete all WholesaleNode database tables and options. Leave Off to preserve data across reinstalls.Off
Log Debug OutputWrite debug messages to a log file. Only enable temporarily when troubleshooting — has performance impact.Off
HPOS CompatibilityAutomatically detected. No setting needed — all modules are written to work on both HPOS and classic order storage.Auto
REST API AccessEnable/disable the REST API endpoints under /wp-json/woob2b/v1/. Standard WC API authentication applies.On
Developer Reference

REST API #

All major modules expose REST endpoints under /wp-json/woob2b/v1/. Authentication uses standard WooCommerce API keys or WordPress Application Passwords.

Endpoint GroupBase PathOperations
Company Accounts/company-accountsList, Get, Create, Update
Company Credit/company-credit, /payment-creditList, Get, Update, Transactions
Purchase Orders (PO Panel)/purchase-ordersList, Get, Approve, Reject, Convert, Mark Paid
Approval Rules/po-approval/rulesList, Get, Create, Update, Delete
My POs (buyer)/my-posList, Get, Submit, Cancel
PO Stats/po-approval/statsGet dashboard summary
Quotes/quotesList, Get, Update Status
Credit Applications/payment-credit/applicationsList, Approve, Reject
Credit Application (submit)/payment-credit/applySubmit (customer-facing, authenticated)
For action hooks and filter hooks available to developers, see the dedicated Hooks & Filters reference. It includes full parameter documentation and copy-paste code examples for every hook.
Migration

Migrating from Another Plugin #

If you're switching from B2BKing, WholesaleX, or another B2B plugin, follow these steps to minimise disruption:

No. Toggling a module off removes it from the load path (zero PHP, zero JavaScript, zero admin UI) but all data — rules, company records, quotes, credit history — stays in the database. Re-enable and everything is exactly as you left it.

WholesaleNode creates 12 custom tables (all prefixed with woob2b_). The key tables are:

  • woob2b_companies — company account records and credit balances
  • woob2b_company_members — user-to-company membership
  • woob2b_transactions — credit charge/payment audit trail
  • woob2b_purchase_orders — System 2 PO records
  • woob2b_rules — unified rule storage (discount rules, PO approval rules)
  • woob2b_quotes — RFQ/quote request data
  • woob2b_store_credit_log — points earning and redemption history

Order-related data (approval status, credit charged, PO numbers) is stored as HPOS-compatible WC order meta — not in custom tables.