Jump to content

Checkbox is missing in VATnumber module


Recommended Posts

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

  

post-942279-0-53920700-1467972675_thumb.png

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
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..

 

 

BR,

 

Andres

Share this post


Link to post
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}

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More