Product UK VAT
Applies UK VAT rates to product prices. Only activates for deliveries into the UK VAT area: Great Britain / Northern Ireland (GB) and the Isle of Man (IM).
Registration
import { pluginRegistry } from '@unchainedshop/core';
import { ProductUkTaxPlugin } from '@unchainedshop/plugins/pricing/product-uk-tax';
pluginRegistry.register(ProductUkTaxPlugin);
Or register both UK tax adapters (product + delivery) via the country preset:
import { registerUkTaxPlugins } from '@unchainedshop/plugins/presets/countries/uk';
registerUkTaxPlugins();
How It Works
- Checks if the delivery address is in the UK VAT area (GB, IM)
- Determines the tax category from:
- Product tags (e.g.,
uk-tax-category:zero) - Delivery provider configuration (
uk-tax-category) - Falls back to STANDARD (20%)
- Product tags (e.g.,
- Resolves the rate valid at order time from the bundled era table and adds tax amounts to the pricing sheet
Tax Categories
| Category | Current Rate | Use Case |
|---|---|---|
| STANDARD | 20% (17.5% before 2011-01-04, 15% Dec 2008 – Dec 2009) | Most goods and services |
| REDUCED | 5% (8% before Sep 1997) | Domestic fuel & power, children's car seats |
| ZERO | 0% | Most food, books, children's clothing |
Rate Data
Rates are bundled in uk-tax-rates.json as era lists ({ validFrom, rate }), verified against gov.uk and the House of Commons Library rate history. The applicable rate follows the order date; updates land as reviewed diffs via the repository's update-tax-rates skill.
Configuration
Via Product Tags
uk-tax-category:reduced
uk-tax-category:zero
Via Delivery Provider
mutation ConfigureDeliveryProvider {
updateDeliveryProvider(
deliveryProviderId: "provider-id"
deliveryProvider: {
configuration: [
{ key: "uk-tax-category", value: "zero" }
]
}
) {
_id
}
}
Net vs Gross Prices
The adapter handles both net and gross prices:
- Net prices: Tax is added on top (
amount * taxRate) - Gross prices: Tax is extracted from the total (
amount - amount / (1 + taxRate))
Adapter Details
| Property | Value |
|---|---|
| Key | shop.unchained.pricing.product-uk-tax |
| Version | 1.0.0 |
| Order Index | 80 |
| Source | pricing/product-uk-tax/adapter.ts |
Related
- Delivery UK VAT - UK VAT for delivery fees
- Product EU VAT - Destination-based EU VAT
- Product Pricing - Custom product pricing