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.
FAQ
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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.
Example
All versions of tax-rule-import-module with dependencies
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package thelia/tax-rule-import-module contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.