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
This plugin is part of the base preset and loaded automatically. Using the base preset is strongly recommended, so explicit installation is usually not required.
Installation
import '@unchainedshop/plugins/pricing/order-items';
How It Works
- Iterates through all order positions
- For each position, creates a ProductPricingSheet from the calculation
- Sums the gross price and tax amounts
- 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.ts |
Related
- Order Delivery - Add delivery fees to order
- Order Payment - Add payment fees to order
- Order Discount - Apply order-level discounts