Prestashop tax calculation EU customers outside of UK with VAT number
<p>Hello how would I go about overriding the </p>

<pre><code>public function getTaxCalculator();
</code></pre>

<p>It's part of the TaxRulesTaxManagerCore class in prestashop?</p>

<p>My boss needs me to give 0% vat to EU customers outside the UK if they have valid VAT Number,</p>

<p>from what I have read I can use the <a href="https://github.com/PrestaShop/vatnumber" rel="nofollow">https://github.com/PrestaShop/vatnumber</a> module .</p>

<p>The thing is my zones are setup with each country being a zone - and I do not want to change them all back to being in the EU - this would effect how we have our carrier system setup.</p>

<p>Actually Im thinking I need to alter, ProductCore.php approx line 2598</p>

<pre><code>if ($usetax != false
        &amp;&amp; !empty($address_infos['vat_number'])
        &amp;&amp; $address_infos['id_country'] != Configuration::get('VATNUMBER_COUNTRY')
        &amp;&amp; Configuration::get('VATNUMBER_MANAGEMENT'))
        $usetax = false;
</code></pre>

<p>to be something like:</p>

<pre><code>if ( customer has VAT and in EU and not in UK ) $usetax = false;
</code></pre>

<p>Maybe thats the better way? </p>

<p>What do people think?</p>

<p>Thanks for your help. </p>