Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
UK is outside of EU VAT zone since 2021
Damian Legawiec8cab7b2e7ec9
diff --git a/core/db/default/spree/zones.rb b/core/db/default/spree/zones.rbindex e32f14a9c8..b5faaac010 100644--- a/core/db/default/spree/zones.rb+++ b/core/db/default/spree/zones.rb@@ -1,13 +1,16 @@eu_vat = Spree::Zone.where(name: 'EU_VAT', description: 'Countries that make up the EU VAT zone.', kind: 'country').first_or_create!+uk_vat = Spree::Zone.where(name: 'UK_VAT', kind: 'country').first_or_create!north_america = Spree::Zone.where(name: 'North America', description: 'USA + Canada', kind: 'country').first_or_create!south_america = Spree::Zone.where(name: 'South America', description: 'South America', kind: 'country').first_or_create!middle_east = Spree::Zone.where(name: 'Middle East', description: 'Middle East', kind: 'country').first_or_create!asia = Spree::Zone.where(name: 'Asia', description: 'Asia', kind: 'country').first_or_create!-%w(PL FI PT RO DE FR SK HU SI IE AT ES IT BE SE LV BG GB LT CY LU MT DK NL EE HR CZ GR).each do |name|+%w(PL FI PT RO DE FR SK HU SI IE AT ES IT BE SE LV BG LT CY LU MT DK NL EE HR CZ GR).each do |name|eu_vat.zone_members.where(zoneable: Spree::Country.find_by!(iso: name)).first_or_create!end+uk_vat.zone_members.where(zoneable: Spree::Country.find_by(iso: 'GB')).first_or_create!+%w(US CA).each do |name|north_america.zone_members.where(zoneable: Spree::Country.find_by!(iso: name)).first_or_create!end