Jump to content

european vat number v1.8.2 - by prestashop


DGRL

Recommended Posts

Hi,

 

I have a question about this module.

When enabled this module removes tax from eu clients when entering a valid VAT number.

now i want to know how to exclude an EU country from this rule.

For example

1. Spain is in the EU but i have to charge Spanish companies who has a valid Tax number with  X% Tax.

2. when entering for example an france Vat number but country spain it will continu anyway.

 

Is there a way to exclude a specific country from this rule?

And is there a way to check if the given VAT number is from the country you register with?

 

Hope to hear from someone soon

Kind regards,

Edited by DGRL (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Anyone who want to explain?

Seems like you can add a condition in modules/vatnumber/VATNumberTaxManager.php, function:

 

public static function isAvailableForThisAddress(Address $address)
{
return (!empty($address->vat_number)
&& $address->id_country != Configuration::get('VATNUMBER_COUNTRY')
&& $address->id_country != "SE")
&& Configuration::get('VATNUMBER_MANAGEMENT')
);
}
 
Maybe you have to replace "SE" with "Spain" or an id from the database.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...