Pricing Catalogs
Pricing catalogs are named sets of markup overrides that allow different dealers to see different price points for the same products. Each dealer account is optionally assigned a pricing catalog that modifies the base nFusion prices.
How They Work
- A pricing catalog is created with a name and a set of SKU-level markup adjustments.
- The catalog name is stored on the dealer's user profile as
pricing_cataloguser meta. - At cart/checkout time, the
WooCommerce\Productmodule reads the dealer's assigned catalog and applies the markups. - Dealers not assigned a catalog receive the default WooCommerce prices (from the nFusion sync).
Management
Pricing catalogs are managed via the custom REST endpoint:
GET /suma/v1/pricing-catalogs— list all catalogsPOST /suma/v1/pricing-catalogs— create or update a catalog
Access is restricted to admin users.
Catalog Assignment
Admins can assign a catalog to a dealer from:
- WP Admin → Users → Edit User — custom user meta field
- Via the
WooCommerce\Usermodule'sadd_user_meta_fields()on the profile page
Redirect Logic
The WooCommerce\User::maybe_redirect_from_trade_page() method checks whether the current user has a pricing catalog assigned. If they visit the "trade" page without one, they are redirected away. This prevents unqualified dealers from seeing trade-only product listings.