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.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-eu-tax80EU VAT (destination-based, 27 member states)EU shops — the delivery country selects the per-country era-based rate
shop.unchained.pricing.product-uk-tax80UK VATUK shops (GB, IM) requiring era-based VAT
shop.unchained.pricing.product-us-sales-tax80US statewide sales taxUS shops — statewide base rate of the delivery state

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
shop.unchained.pricing.delivery-eu-tax80EU VAT on deliveryEU shops requiring VAT on shipping fees
shop.unchained.pricing.delivery-uk-tax80UK VAT on deliveryUK shops requiring VAT on shipping fees
shop.unchained.pricing.delivery-us-sales-tax80US sales tax on deliveryUS shops whose delivery state taxes 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-discount40Full order discountsWhen applying discounts across the entire order total

Discount Adapters​

Define discount rules and coupon codes.

Adapter KeyDescription
shop.unchained.discount.100-off100 CHF off coupon
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.