Skip to main content

Volume / Tiered Pricing

The Dealers Site supports volume pricing — stepped price breaks that reward dealers for buying in larger quantities. Volume pricing tiers are calculated by the SDM Middleware using nFusion's tier data and imported into 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 SDM Middleware fetches nFusion data and calculates each tier's final ask price based on spot prices and markups. The calculated tiers are imported and stored 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: 1 price
  • If cart quantity is between 10–24: applies qty: 10 price
  • If cart quantity is 25+: applies qty: 25 price

Tier thresholds and prices are imported from the Middleware — they update each time the Middleware sync runs and calculates new prices based on current nFusion data.


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.