ViArt - PHP Shopping Cart
Select your currency:
American DollarBritish Pound
4.1.3. How to add VAT validation
Prev Index Next
To add VAT validation, please implement the following steps:

1. Add a field (e.g. "EU-VAT Number") at: Administration > Orders > Order profile Page ->Add New Custom Field and set "Field Type" to "Shopping Cart" and "Field Type" to "TextBox". Set "Show Field" to "All Orders".

To enable automatic checking and basket update as soon as a VAT number is entered, you could add a line in the custom field properties below in "JavaScript Settings" in the "OnChange" Java section. The line to add is: document.order_info.operation.value='refresh';document.order_info.submit();

2. Open your var_definition.php file from the 'includes' folder and uncomment the following strings:

// vat validation
//$vat_validation = true;
//$vat_obligatory_countries = array("GB");

like:
vat validation
$vat_validation = true;
$vat_obligatory_countries = array("GB");

You can specify codes of the countries from which the users will obligatory pay the VAT (regadless whether they specify a VAT number or not) in the third string, like: "GB","FR","LT", etc.

Prev Index Next
ViArt - PHP Shopping Cart