Jump to content

Checkbox is missing in VATnumber module

Recommended Posts

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',



                        'type' => 'radio',

That will at least let you turn it on and off, though it doesn't look good.

  • Like 1
Link to comment
Share on other sites

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..






Link to comment
Share on other sites

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

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...