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 Key | Order | Description |
|---|---|---|
shop.unchained.pricing.product-price | 0 | Base catalog price |
shop.unchained.pricing.product-price-options | 1 | Add-on option prices |
shop.unchained.pricing.rate-conversion | 10 | Currency conversion |
shop.unchained.pricing.product-discount | 30 | Apply discounts |
shop.unchained.pricing.product-swiss-tax | 80 | Swiss VAT |
shop.unchained.pricing.product-round | 90 | Round prices |
Delivery Pricing
Calculate shipping and handling fees.
| Adapter Key | Order | Description |
|---|---|---|
shop.unchained.pricing.delivery-free | 0 | Zero-cost delivery |
shop.unchained.pricing.delivery-swiss-tax | 80 | Swiss VAT on delivery |
Payment Pricing
Calculate payment processing fees.
| Adapter Key | Order | Description |
|---|---|---|
shop.unchained.pricing.payment-free | 0 | Zero-cost payment |
Order Pricing
Aggregate prices into order totals.
| Adapter Key | Order | Description |
|---|---|---|
shop.unchained.pricing.order-items | 0 | Sum product totals |
shop.unchained.pricing.order-delivery | 10 | Add delivery fees |
shop.unchained.pricing.order-payment | 10 | Add payment fees |
shop.unchained.pricing.order-items-discount | 30 | Items-only discounts |
shop.unchained.pricing.order-discount | 40 | Full order discounts |
shop.unchained.pricing.order-round | 90 | Round order totals |
Discount Adapters
Define discount rules and coupon codes.
| Adapter Key | Description |
|---|---|
shop.unchained.discount.100-off | 100 CHF off coupon |
shop.unchained.discount.half-price | Auto 50% for tagged users |
shop.unchained.discount.half-price-manual | 50% off coupon |
Creating Custom Pricing Plugins
See Product Pricing, Delivery Pricing, Payment Pricing, and Order Discounts for creating custom pricing adapters.