diff --git a/modules/vatnumber/config.xml b/modules/vatnumber/config.xml index 5f058ebb5..fee537cec 100755 --- a/modules/vatnumber/config.xml +++ b/modules/vatnumber/config.xml @@ -2,11 +2,12 @@ vatnumber - + 1 - 0 + 1 - \ No newline at end of file + + diff --git a/modules/vatnumber/vatnumber.php b/modules/vatnumber/vatnumber.php index 21ba5e97d..303fb5fb6 100755 --- a/modules/vatnumber/vatnumber.php +++ b/modules/vatnumber/vatnumber.php @@ -34,13 +34,17 @@ class VatNumber extends TaxManagerModule { $this->name = 'vatnumber'; $this->tab = 'billing_invoicing'; - $this->version = 1.0; + $this->version = 1.2; $this->author = 'PrestaShop'; $this->need_instance = 0; $this->tax_manager_class = 'VATNumberTaxManager'; parent::__construct(); + $id_country = (int)Configuration::get('VATNUMBER_COUNTRY'); + + if ($id_country == 0) + $this->warning = $this->l('No default country set.'); $this->displayName = $this->l('European VAT number'); $this->description = $this->l('Enable entering of the VAT intra-community number when creating the address (You must fill in the company field to allow keyboarding VAT number)');