Okay
  Public Ticket #3536136
vat Abilita la convalida automatica VIES per l'IVA
Closed

Comments

  •  13
    mariateresa started the conversation

    Hello, 

    When I check vies per vat, when i put correct iva i have an error.

    Why?

    3423728823.png

    2727235631.png
  •  1,906
    WebWizards replied

    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

  •  13
    mariateresa replied

    Thanks 

    it is possibile not use IT before?


  •  13
    mariateresa replied

    MMM 

    thare is a problem

    I don't know why, but now I don't see P.iva in registration form:


    1293749341.png

    4197163620.png



    But now tou see Registrati - Gvar Forniture 

    Thare is strange 

  •  13
    mariateresa replied

    I understand why

    when I connect to campo di fatturazione vat

    it not appear in registratio.

    why?

    6720039939.png


  •  1,906
    WebWizards replied

    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