This Magento 2 module makes it possible to import a CSV file containing all the tax rates for all countries in the EU. It will also create the related tax rules used in Magento with some basic configuration.
You can find the current rates here.
This package can be installed using Composer:
composer require elgentos/module-eu-tax-rates
bin/magento module:enable Elgentos_EuTaxRates
bin/magento setup:upgrade
To use this script, you can run the following command on your command line:
bin/magento elgentos:eutaxes:create [--reset=1] [--file=path/to/file.csv]
When setting the reset
option, the existing tax rates and tax rules will be removed. If not set, only non-existing
tax rates will be imported and the tax rule will be updated as well.
If you have a custom rates file to import, you can set that using the file
option and add the CSV file as its value.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.