Skip to main content

Order Delivery Pricing

Adds the calculated delivery fees and taxes to the order total.

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-delivery';

How It Works

  1. Checks if order has a delivery method set
  2. Creates a DeliveryPricingSheet from the delivery calculation
  3. Extracts gross price and tax sum
  4. 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

PropertyValue
Keyshop.unchained.pricing.order-delivery
Version1.0.0
Order Index10
Sourcepricing/order-delivery.ts