magento2: VAT ID won't appear in checkout shipping address unless the customer/create_account/vat_frontend_visibility is Yes
As the title says, currently users cannot enable address vat_id only on the checkout page because it won’t show unless the option customer/create_account/vat_frontend_visibility is enabled. This option clearly refers to the account creation.
There’s no apparent reason why that is, other than that the system is configured to check this configuration option instead of the customer/address/taxvat_show option. This option clearly refers to the customer’s address settings.
This is a bug because currently if we want to show vat_id in the addresses we also have to show it in the registration page. This doesn’t make sense when there are two configuration options for each one.
Preconditions (*)
- Magento 2.4.1 - 2.4.3
Steps to reproduce (*)
- set
customer/create_account/vat_frontend_visibilityto No - set
customer/address/taxvat_showto optional or required - visit the checkout page
Expected result (*)
- the vat_id field should show in the address because of the setting
customer/address/taxvat_showbeing optional or required
Actual result (*)
- VAT ID doesn’t show up
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (4 by maintainers)
Hi thanks, perhaps I didn’t phrase it correctly, my question is why do we have to enable it on registration if we only need it on checkout?
We want to use only the one tied to the billing / shipping address but forced to use both and it would be nice to know the reasoning behind a forced choice
Hello @ioweb-gr,
The customer will have the option to input his/her VAT number during registration & also during checkout. But both of them are treated differently. The VAT Number entered during registration would be associated with the customer_entity table - taxvat column & would be part of the customer profile. It can be verified from the Customers Grid Listing on the admin panel under the Tax Vat Number column. This data can be modified by the customer via storefront - My Account -> Account Information -> Edit.
Whereas the VAT number entered by the customer during checkout along with the Address section is tied together as a part of his/her Billing/Shipping Address. This can be verified from admin panel at Customers -> Customer Information -> Addresses -> Default Billing Address/ Default Shipping Address. The customer can modify this data via storefront - My Account -> Address Book -> Default Billing Address/ Default Shipping Address. PO has confirmed this as the expected behavior.
That’s why we have closed this issue.
Thanks