Order Delivery Pricing
Adds the calculated delivery fees and taxes to the order total.
Included in Base Preset
Registered automatically by registerBasePlugins() / registerAllPlugins().
Registration
import { pluginRegistry } from '@unchainedshop/core';
import { OrderDeliveryPlugin } from '@unchainedshop/plugins/pricing/order-delivery';
pluginRegistry.register(OrderDeliveryPlugin);
How It Works
- Checks if order has a delivery method set
- Creates a DeliveryPricingSheet from the delivery calculation
- Extracts net price and tax sum
- Adds delivery amount and tax to the order pricing sheet
Prerequisites
- Delivery must be selected on the order
- Delivery pricing adapters must have calculated the delivery fees
Adapter Details
| Property | Value |
|---|---|
| Key | shop.unchained.pricing.order-delivery |
| Version | 1.0.0 |
| Order Index | 10 |
| Source | pricing/order-delivery |
Related
- Order Items - Sum product prices
- Order Payment - Add payment fees
- Delivery Pricing - Custom delivery pricing