Confidential work · Wholesale & B2B

Building a wholesale system inside WooCommerce

A complete wholesale plugin: trade accounts, customer pricing, quantity tiers, quotes and ordering tools, built to work together inside WooCommerce.

Illustration of layered pricing ledgers connected to a quote and an order.
Original technical illustration of the workflow. Client interfaces and data are not shown.

This is one of four plugins I built for the same confidential engagement. The other case studies cover different parts of that work.

The requirement

A wholesale store needs more than a discounted price. Different customers can have different terms, staff may order on behalf of a company, and an agreed quote must become an order with the right prices. I built the plugin that connects those workflows within an existing WooCommerce store.

What I built

  • Built customer groups, customer-specific prices, reusable price lists and quantity-based pricing, with a shared pricing resolver across the storefront, basket and administrative order tools.
  • Developed trade registration and approval, company accounts with subaccounts, catalogue visibility controls and customer-specific trading rules.
  • Built quote requests, administrator review and customer acceptance, including conversion of an accepted quote into a WooCommerce order.
  • Added quick ordering, saved purchase lists, repeat ordering and minimum, maximum and case-size rules.
  • Built bulk editing, CSV pricing imports, pricing previews and import history with restorable snapshots.

One pricing decision, wherever an order starts

Wholesale pricing becomes difficult when a product page, basket and manually created order each interpret the rules differently. I built a pricing layer that takes the customer, product and quantity as explicit inputs, then resolves the applicable price. The storefront and administrative order tools can use that same decision.

The administrator can inspect which rule produced a price before changing the configuration. When adding products to an order or deliberately recalculating its lines, the selected customer supplies the pricing context. A normal save preserves prices entered by hand. That distinction matters when staff are working with an agreed price.

From a trade account to an agreed order

Trade registration and approval establish who can use the wholesale features. Company subaccounts inherit the appropriate trading rules, while quick ordering and saved lists support customers who already know the products they need.

Quotes have their own workflow: a customer submits a request, an administrator reviews the lines, and the customer can accept or reject the proposed quote. Acceptance can create the WooCommerce order, carrying the agreed line pricing into the next step.

Tools for checking and changing the rules

A wholesale catalogue also needs maintainable administration. I built bulk editing and CSV imports alongside pricing previews, so staff can manage a set of products and check the rules applied to an individual customer.

Imports record snapshots before changing data and retain a restore history. Quantity validation operates on basket contents rather than relying on the quantity input alone; related lines are aggregated so splitting a product across lines does not evade its limits. Classic checkout notices and block checkout errors draw on shared validation.

What this makes possible

The plugin brings trade accounts, pricing, quotations and ordering into one WooCommerce workflow. Administrators can configure and inspect the rules, while customers can order using their account terms or an accepted quote.

Why the detail matters

Wholesale development is a good example of the work I take on: a set of business rules that must remain consistent across the customer interface, basket, checkout and administration. The useful part is making those pieces agree.

Other plugins I built as part of the same confidential work.

Need wholesale features that fit how your business takes orders?

Send me the outline and any deadline. We can agree a useful first piece of work and a realistic timescale.

Talk to Adam about your project