Two wholesale buyers ask for the same product. One has an annual contract and the other buys occasionally. Sending separate spreadsheets works for a handful of accounts, but it becomes difficult to know which rate was shown, accepted and later invoiced. A portal can make that history consistent if pricing and access rules are designed together.
WooCommerce's wholesale guide describes role-based wholesale concepts. The exact implementation may be a plugin or a custom application. In either case, displaying a hidden price only in the interface is insufficient: OWASP's Authorization Cheat Sheet advises enforcing access control on every request.
Define the commercial rule before writing code
List which account may buy each product, the base rate, customer-specific discount or negotiated rate, quantity break, tax treatment and effective dates. Decide whether a salesperson may override a quote and who approves it. A simple rate card by customer group may be enough; not every business needs a complex pricing engine.
For example, a packaging manufacturer may offer one rate for orders above a certain carton quantity while an approved distributor has a separate contract rate. The portal must have a clear precedence rule. If two rules match, staff should know which wins and why.
Enforce the same price everywhere
Calculate the price on the server using the authenticated company and current rule. Apply the same result to product details, search results, quote requests, cart totals, API responses and downloadable price lists. Never trust a browser-supplied company ID or final amount. A buyer should not see another company's rate by changing a URL, guessing an API identifier or opening an old export link.
At order acceptance, save a snapshot of the agreed unit price, quantity, rule version and approver. Later rate changes should not silently rewrite a past order. Keep a clear path for an expired quote or a contract renewal.
Test real account boundaries
Create two buyer accounts, one sales account and an unapproved visitor. Check direct URLs, search, API calls, CSV/PDF exports and cached pages with each identity. OWASP's multi-tenant security guidance explains why isolation has to extend across data access and exports, not just the visible screen.
I can help map existing price sheets into a small portal pilot with account approvals, one product family and a tested quote-to-order flow. If dealers also need to repeat prior purchases, my B2B reorder portal guide covers that next step.





