Skip to main content

Pricing Plugins

Pricing plugins calculate prices at different levels of the order. They run in a chain based on their orderIndex, with lower values running first.

Product Pricing

Calculate prices when products are queried or added to cart.

Adapter KeyOrderDescriptionWhen to Use
shop.unchained.pricing.product-price0Base catalog priceAlways — provides the base price from the product catalog
shop.unchained.pricing.product-price-options1Add-on option pricesWhen products have configurable options with price modifiers
shop.unchained.pricing.rate-conversion10Currency conversionWhen selling in multiple currencies
shop.unchained.pricing.product-discount30Apply discountsWhen using product-level discount rules or coupons
shop.unchained.pricing.product-swiss-tax80Swiss VATSwiss shops requiring 8.1% / 2.6% VAT calculation
shop.unchained.pricing.product-round90Round pricesWhen prices must be rounded to 0.05 (Swiss rounding)

Delivery Pricing

Calculate shipping and handling fees.

Adapter KeyOrderDescriptionWhen to Use
shop.unchained.pricing.delivery-free0Zero-cost deliveryDefault — sets delivery cost to zero, replace with custom adapter for fees
shop.unchained.pricing.delivery-swiss-tax80Swiss VAT on deliverySwiss shops requiring VAT on shipping fees

Payment Pricing

Calculate payment processing fees.

Adapter KeyOrderDescriptionWhen to Use
shop.unchained.pricing.payment-free0Zero-cost paymentDefault — sets payment fee to zero, replace with custom adapter for surcharges

Order Pricing

Aggregate prices into order totals.

Adapter KeyOrderDescriptionWhen to Use
shop.unchained.pricing.order-items0Sum product totalsAlways — aggregates product line items into order total
shop.unchained.pricing.order-delivery10Add delivery feesAlways — adds delivery costs to order total
shop.unchained.pricing.order-payment10Add payment feesAlways — adds payment surcharges to order total
shop.unchained.pricing.order-items-discount30Items-only discountsWhen applying discounts that only affect product line items
shop.unchained.pricing.order-discount40Full order discountsWhen applying discounts across the entire order total
shop.unchained.pricing.order-round90Round order totalsWhen final order totals need rounding (Swiss 0.05 rounding)

Discount Adapters

Define discount rules and coupon codes.

Adapter KeyDescription
shop.unchained.discount.100-off100 CHF off coupon
shop.unchained.discount.half-priceAuto 50% for tagged users
shop.unchained.discount.half-price-manual50% off coupon

Creating Custom Pricing Plugins

See Product Pricing, Delivery Pricing, Payment Pricing, and Order Discounts for creating custom pricing adapters.