WooCommerce B2B Pricing Tiers: How to Keep Product Pages Fast
B2B stores rarely have one price list. A wholesale customer may have a negotiated discount per product category, a different tier than the next customer, and prices that change when a contract is renewed. The hard part on WooCommerce is not storing those rules. It is showing the right price on every product listing without making the shop slow.
This article explains how we approach tier-based pricing, based on a project with 200+ customer tiers over a 4,000+ SKU catalog. You can read the full story in the B2B wholesale platform case study.
The problem: prices multiply
With 4,000 products and 200 customer tiers there are up to 800,000 possible price combinations. A naive implementation calculates the price for each product on every page view, which means hundreds of lookups on a single shop page. The page gets slower as the catalog and the number of tiers grow.
Approach 1: calculate once per customer, not per page view
Prices depend on who is logged in, not on which page they are looking at. So the price table for that customer can be computed when they log in and reused for the rest of the session. In our project the prices for a customer’s tier are pre-computed on login and stored in a transient-backed cache. Product listing pages then read from the cache instead of recalculating.
Approach 2: invalidate selectively
A cache is only useful if it is correct. When stock or price data changes, you do not want to throw away every cached price. We invalidate by product category: when the warehouse sync updates specific categories, only those cached prices are refreshed. This is what kept product listings loading in under 180 ms even for customers with the most complex pricing structures.
Approach 3: keep the rules readable
- Roles and tiers as data: store the discount matrix per tier and category in one place instead of scattering exceptions in code.
- One pricing function: every part of the shop, from listings to cart to invoices, should call the same function, so the price a customer sees is the price they pay.
- Audit trail: when a price is disputed, you should be able to see which rule produced it.
Checkout for B2B
Pricing is only half of a B2B shop. Wholesale customers usually need to enter a PO number, choose payment terms such as net-30 or net-60, and receive an invoice by email. In our project the checkout captured the PO number and payment terms, and generated a PDF invoice attached to the order confirmation email.
Connecting pricing to the rest of the business
Prices and stock usually come from an ERP or warehouse system. We sync stock levels with a polling interval and a webhook fallback for critical changes, and push orders to the ERP through an automation pipeline. See our guides on WooCommerce ERP integration data mapping and n8n vs custom code for automation.
Checklist for your own B2B pricing project
- List every pricing dimension: customer tier, product category, quantity breaks, contract dates.
- Decide where the source of truth lives (WooCommerce or the ERP).
- Compute prices per customer, not per page view, and cache them.
- Invalidate the cache by the smallest unit that can change.
- Measure listing page time with your most complex customer, not an average one.
Frequently asked questions
Can WooCommerce handle hundreds of customer-specific price tiers?
Yes, if prices are not recalculated on every page view. In one of our projects 200+ tiers over 4,000+ SKUs ran with product listings under 180 ms.
How much does a custom WooCommerce B2B platform cost?
Custom WooCommerce development starts at $3,500 USD with fixed budgets. The B2B platform in our case study was in the $15,000 to $22,000 USD range and took 11 weeks.
Should pricing live in WooCommerce or in the ERP?
It depends on who owns the data. If the ERP is the source of truth, sync prices into WooCommerce and cache them per customer tier.
Need B2B pricing on WooCommerce?
Our custom WooCommerce development service covers B2B pricing rules, customer tiers and checkout flows, and our system integrations connect them to your ERP. Send us a brief and we will reply within 48 hours.