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
- Iterates through all order positions
- For each position, creates a ProductPricingSheet from the calculation
- Sums the net price and tax amounts separately
- Adds the totals to the order pricing sheet
Adapter Details
| Property | Value |
|---|---|
| Key | shop.unchained.pricing.order-items |
| Version | 1.0.0 |
| Order Index | 0 |
| Source | pricing/order-items |
Related
- Order Delivery - Add delivery fees to order
- Order Payment - Add payment fees to order
- Order Discount - Apply order-level discounts