3

I enabled the vat field from admin panel and now i want to make it required during checkout shipping step.

I have followed the steps described here but it is not working. What is missing from the steps of the above link? Can you suggest how to solve this?

Thanks in advance

enter image description here

5

This can be enabled via admin panel:

Stores > Configuration > Customer Configuration > Name and Address Options > Show Tax/VAT Number

The possible options are:

  • No
  • Optional
  • Required

enter image description here

On checkout

enter image description here

Now, other possibilities are :

1 If you navigate to:

Stores > Configuration > Customers > Customer Configuration > (Change Scope to correct website/store view) > Create New Account Options > Show VAT Number on Storefront

Change dropdown to Yes.

You'll then have to set up your tax classes/tax rules/customer groups and then in the above section you can assign the correct values to the groups.

enter image description here

http://docs.magento.com/m2/ce/user_guide/tax/vat-validation-configure.html

2 From Database

UPDATE `eav_attribute` SET `is_required` = '1' WHERE `eav_attribute`.`attribute_id` = 36;

it's working

| improve this answer | |
  • Yes , i have enabled from admin panel ( as a required option) but when i do checkout steps the field is not required on front end. User can complete checkout without without filling vat number. – krisi May 24 '18 at 13:34
  • And once you add your VAT in customer account then there no need to ask on checkout again, but if there's not added VAT then it will compulsory ask for VAT. – Aditya Shah May 24 '18 at 13:48
  • Yes but in the case when user/customer is not logged in , when he complete checkout the VAT Number is not required (i have updated my question with a screenshot) – krisi May 24 '18 at 15:13
  • Okay let me generate it – Aditya Shah May 24 '18 at 16:01
  • Hi, Check my answer ! – Aditya Shah May 25 '18 at 6:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.