mildsevenipoiss Posted July 8, 2016 Share Posted July 8, 2016 Hi, guys. I cant enable "checking of the VAT number with the web service." Can someone knows why vatnumber module not showing checkbox? Maybe someone have experiences wiht that? Thanks in advance, Andres T Link to comment Share on other sites More sharing options...
rocky Posted July 10, 2016 Share Posted July 10, 2016 It seems this module is not compatible with PrestaShop v1.5. It works fine in PrestaShop v1.6. You can hack the radio button to work by changing line 237 of modules/vatnumber.php from: 'type' => 'switch', to: 'type' => 'radio', That will at least let you turn it on and off, though it doesn't look good. 1 Link to comment Share on other sites More sharing options...
mildsevenipoiss Posted July 12, 2016 Author Share Posted July 12, 2016 Thanks Rocky! It works!. Maybe you know, how to show VAT directive on ivoice? Every time if user make order without VAT, then invoice must include that directive: Council Directive 2006/112/EC, Art 138 Do you have some ideas how to solve that question? Or maybe its time to order M4 Pdf module.. BR, Andres Link to comment Share on other sites More sharing options...
rocky Posted July 13, 2016 Share Posted July 13, 2016 It should be pretty easy. You could add something like the following to the top of themes/<your_theme>/pdf/invoice.tax-tab.tpl (or /pdf/invoice.tax-tab.tpl if that file doesn't exist): {if !$addresses.invoice->vat_number}{l s='Council Directive 2006/112/EC, Art 138' pdf='true}{/if} 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