Public Ticket #3536136

vat Abilita la convalida automatica VIES per l'IVA

Closed
Comments
2,762
KingsPlugins replied 3 years ago on December 5, 2023 at 1:40pm

Hello Mariateresa,


Which code are you trying? Please share it with us so we can check it.


Also, please note you should enter it with the first 2 letters, so it should have the form "IT123456789...".


Kind regards,

Stefan

2,762
KingsPlugins replied 3 years ago on December 6, 2023 at 5:03pm

Hi again,


it is possibile not use IT before?

Yes, you can set IT as a default prefix. To do this, add this PHP code snippet to your site:

add_filter('b2bking_set_default_prefix_vat', function($prefix){
      return 'IT';
}, 10, 2);

Then the plugin will use IT automatically if the customer did not add another prefix.



Regarding the VAT field, this should also work:

5585156666.png


But please note the field is hidden until you choose the country.

So you need to first choose "Italia" from the dropdown, and only after that the field will show.

8634180021.png

Kind regards,

Stefan

Sign In