Okay
  Public Ticket #3684689
VAT number not visible in form
Closed

Comments

  •  3
    Matina Kallivoka started the conversation

    Hello I have activated the vat field in custom field for me user role but it is not visible in the form as you can see from the link https://kanokimonos.com/wholesale-b2b/.

    I am attaching the fields as an image

    Attached files:  Screenshot 2024-07-12 at 10.51.08 AM.png

  •  2,244
    WebWizards replied

    Hello Matina,

    The way this works in our plugin is that the VAT field only shows after the country is selected. This is because it may be enabled for specific countries only, so we show it based on the country.


    The VAT field would show up after selecting a country:

    9439932654.png



    If it would help, I can provide a code snippet that selects a specific country as a default option, when the page first loads (that way, the VAT field would also be visible by default).


    Kind regards,

    Stefan

  •  3
    Matina Kallivoka replied

    Oh ok I understand. Thank you so much.

    One more question. If the user adds wrong VAT, is there any setting in the plugin to validate it from your side?

  •  2,244
    WebWizards replied

    It is possible to validate the VAT number using the European VIES API ( https://woocommerce-b2b-plugin.com/docs/vat-and-vies-validation/ )

    To enable this, you can go to B2BKing -> Registration Fields and click on the VAT field. Then scroll down and enable the checkbox here:

    4230551096.png


    When that is enabled, IF the customer enters a VAT number, only a valid number will allow registration.

  •  3
    Matina Kallivoka replied

    Great thanks a lot