Skip to main content

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

  1. A pricing catalog is created with a name and a set of SKU-level markup adjustments.
  2. The catalog name is stored on the dealer's user profile as pricing_catalog user meta.
  3. At cart/checkout time, the WooCommerce\Product module reads the dealer's assigned catalog and applies the markups.
  4. 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 catalogs
  • POST /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\User module's add_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.