garyconstable80 Posted February 1, 2016 Share Posted February 1, 2016 Hello how would I go about overriding the public function getTaxCalculator(); It's part of the TaxRulesTaxManagerCore class in prestashop? My boss needs me to give 0% vat to EU customers outside the UK if they have valid VAT Number, from what I have read I can use the https://github.com/PrestaShop/vatnumber module . 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. Actually Im thinking I need to alter, ProductCore.php approx line 2598 if ($usetax != false && !empty($address_infos['vat_number']) && $address_infos['id_country'] != Configuration::get('VATNUMBER_COUNTRY') && Configuration::get('VATNUMBER_MANAGEMENT')) $usetax = false; to be something like: if ( customer has VAT and in EU and not in UK ) $usetax = false; Maybe thats the better way? What do people think? Thanks. Link to comment Share on other sites More sharing options...
Guest Posted February 1, 2016 Share Posted February 1, 2016 It is built in already. Enable Modules > European VAT number on the backoffice Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now