Not charging VAT to EU businesses
If your business sells to other businesses within the EU and you do not need to charge VAT to those visitors if they supply a VAT number, you can add functionality to your website's shopping basket page to achieve this.
Code can be added to your website's theme files to remove VAT from an order if a visitor enters a VAT number that can be successfully validated. ShopWired uses the VATLayer API to validate VAT numbers.
To use the feature, you'll first need to install the VAT features app.
Website theme changes
Website theme changes
ShopWired themes do not contain, by default, the necessary code for the VAT validation functionality. Instead, the code must be added to your theme files to make the functionality available.
If you're using the shipping on basket configuration, add a form to your shopping basket page that asks the visitor to enter their VAT number. The VAT number can be validated by sending a post
request to /checkout/basket/set-vat-number
using the vat_number
property. The endpoint will return a JSON response containing a single property of valid
, which will return either true
or false
.
If the VAT number is successfully validated, VAT will be automatically removed from the order (including any delivery costs).
You can store the VAT number entered using a hidden field on the basket form with the name basket_comments
.
It is desirable to only show the VAT number field if the customer selects a delivery zone indicating eligibility to order without paying VAT. To do so, identify the ID of the delivery zone selected and hide/show the VAT number field accordingly.
Country | ID | Country | ID | Country | ID |
---|---|---|---|---|---|
Austria | 14 | Ireland | 103 | Latvia | 117 |
Belgium | 21 | Italy | 105 | Lithuania | 123 |
Bulgaria | 33 | Luxembourg | 124 | Malta | 132 |
Croatia | 53 | Netherlands | 150 | Poland | 170 |
Cyprus | 55 | Portugal | 171 | Romania | 175 |
Czech Republic | 56 | Slovakia | 189 | Slovenia | 190 |
Denmark | 57 | Estonia | 67 | Finland | 72 |
France | 73 | Germany | 81 | Greece | 84 |
Hungary | 97 | Spain | 195 | Sweden | 203 |
Configuring the VAT features app
Configuring the VAT features app
On the VAT features app page:
- Select Yes for the setting labelled Remove VAT for valid VAT numbers
- Enter the 2-letter for the EU countries that you want to remove VAT for, separating each with a comma, into the VAT country prefixes setting, e.g.
AT, BE, BG, CY, CZ, DE, DK, EE, EL, ES, FI, FR, HR, HU, IE, IT, LT, LU, LV, MT, NL, PL, PT, RO, SE, SI, SK