Download the PHP package thelia/tax-rule-import-module without Composer
On this page you can find all versions of the php package thelia/tax-rule-import-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package tax-rule-import-module
Tax Rule Import
This module add import and export for tax rules
/!\ Tax rule export filter will be available in Thelia 2.1.4 and 2.2.0-alpha2
Installation
Manually
- Copy the module into directory and be sure that the name of the module is TaxRuleImport.
- Activate it in your thelia administration panel
Composer
Add it in your main thelia composer.json file
Usage
With Thelia
First, create your tax rule with Thelia.
Then, to the export (or import) page and use the "Tax rule" export (or import)
Manually
If you want to create your tax rule file, you'll have to write an XML file.
The root tag is called , then each tax rule go into a .
Example:
Then, each tax rule must have two tags:
- countries
- descriptives
It can have a tag too.
The tag
This tag must contain at least one tag. This is the countries where the tax rules has to be applied.
The value of country can be the isoalpha2, isoalpha3 or isocode of the country.
Example:
The tag
This tag must contain at least one tag, that has a mandatory attribute . Then, the tag can have two children:
- The tax rule title
- The tax rule description
Example:
The tag
This tag contains at least one tag, that has a mandatory attribute .
The type attribute can be:
- percent : this is a shortcut for
- amount : this is a shortcut for
- feature_percent : this is a shortcut for
- Your own tax class
The tag can have two children:
- This tag works exactly like 's one
- This tag has a mandatory attribute that is the class's requirement name, and the value is the requirement's. You may add as many requirement tag as you want.