VAT ID always showing... Also if it must be hidden (conditional custom field)

  • Vincenzo
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
6 years 7 months ago #117699 by Vincenzo
Hi Dear,

I found this bug.

Since I'm in Italy, I have to differentiate from private user (with TAX ID) and business owner or professionals (with VAT ID).

So, I created a Field that asks:

"Pivate or business?"

Based on this field, there are two other fields that should be appear only if user choose "business"

(these fields are: "Organization" and "VAT ID")

Now...

1.
If I choose to NOT check the VAT ID for EU Customers (in Configuration > EU VAT Number Field > No selection)

then it works correctly.

BUT

2.
If I choos TO CHECK the VAT ID (in Configuration > EU VAT Number Field > "Partita IVA" - that is VAT ID in Italy)

then...

The custom fields "Partita IVA" isn't hidden and private customers cannot proceed.


--

I can go with solution 1 "hoping" that nobody insert wrong data (wrong VAT ID) but it would be nice to have this system works.

Any solution about this?

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #117712 by Tuan Pham Ngoc
Hello Vincenzo

Unfortunately, if you use solution 2, you will have to follow how the system is programmed to support EU VAT Number. Means:

- The field Partita IVA will always be shown
- If someone is business, they can enter a VAT Number (the system will check and make sure it's valid). If someone is personal, just leave the Partita IVA field empty

Tuan
The following user(s) said Thank You: Vincenzo

Please Log in or Create an account to join the conversation.

  • Vincenzo
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
6 years 7 months ago #117724 by Vincenzo
Ok, what I thought. I follow this way. ;)

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #117742 by Tuan Pham Ngoc
OK. Thanks Vincenzo

Please Log in or Create an account to join the conversation.