Skip to main content

Order Items Pricing

Sums up all product item prices and taxes from order positions into the order total. This is the foundation of order-level pricing.

Included in Base Preset

Registered automatically by registerBasePlugins() / registerAllPlugins().

Registration​

import { pluginRegistry } from '@unchainedshop/core';
import { OrderItemsPlugin } from '@unchainedshop/plugins/pricing/order-items';

pluginRegistry.register(OrderItemsPlugin);

How It Works​

  1. Iterates through all order positions
  2. For each position, creates a ProductPricingSheet from the calculation
  3. Sums the net price and tax amounts separately
  4. Adds the totals to the order pricing sheet

Adapter Details​

PropertyValue
Keyshop.unchained.pricing.order-items
Version1.0.0
Order Index0
Sourcepricing/order-items