Volume / Tiered Pricing
The Dealers Site supports volume pricing — stepped price breaks that reward dealers for buying in larger quantities. Volume prices are sourced from nFusion's tier data and stored in WooCommerce product meta.
Data Source
Volume pricing tiers come from nFusion's RetailTiers or WholesaleTiers API fields, depending on the tenant's tier_pricing_source setting.
The Middleware Platform stores tiers as a JSON array in the _volume_pricing WooCommerce meta key:
[
{"qty": 1, "ask": 28.50, "markup": 1.50},
{"qty": 10, "ask": 27.00, "markup": 0.00},
{"qty": 25, "ask": 26.00, "markup": -1.00}
]
Frontend Display
Volume pricing tables are rendered on product pages and catalog listings. The wc-volume-pricing-field app widget provides the product admin interface for viewing and overriding tier data.
Cart Logic
When a dealer adds items to cart, the WooCommerce\Cart module checks the cart quantity for each SKU and applies the appropriate tier price:
- If cart quantity is between 1–9: applies
qty: 1price - If cart quantity is between 10–24: applies
qty: 10price - If cart quantity is 25+: applies
qty: 25price
Tier thresholds and prices are tied to current spot prices — they update every time the Middleware sync runs.
Algolia Integration
Volume pricing tiers are also stored in Algolia under retail_tiers (or wholesale_tiers) so the product browse page can display tier tables without a WooCommerce round-trip.