Product Catalog Price
Adds the price from the product catalog to the pricing calculation, preserving its isNetPrice and isTaxable flags. This is typically the first adapter in the product pricing chain.
Included in Base Preset
Registered automatically by registerBasePlugins() / registerAllPlugins().
Registration
import { pluginRegistry } from '@unchainedshop/core';
import { ProductPricePlugin } from '@unchainedshop/plugins/pricing/product-catalog-price';
pluginRegistry.register(ProductPricePlugin);
How It Works
- Looks up the product price for the given country, currency, and quantity
- Adds the item total (price × quantity) to the calculation
- For bundle products, calculates prices from bundled product prices if no direct price exists
Bundle Product Support
If a product is a BUNDLE_PRODUCT and has no direct price configured, the adapter iterates through product.bundleItems and sums up the prices of all bundled products.
Adapter Details
| Property | Value |
|---|---|
| Key | shop.unchained.pricing.product-price |
| Version | 1.0.0 |
| Order Index | 0 |
| Source | pricing/product-catalog-price |
Related
- Product Discount - Apply discounts to product prices
- Product Swiss Tax - Apply Swiss VAT