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/.
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:
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).
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
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:
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
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?
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:
When that is enabled, IF the customer enters a VAT number, only a valid number will allow registration.
Great thanks a lot