I think that I'm going crazy, how can I add the "required" attribute to Vat number and company field in the checkout form??

  • Do you want to set required only for checkout form or all forms where vat number and company field is display? Oct 24, 2018 at 11:32

2 Answers 2


That should do it:

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

You can set requried field from the admin also for that Goto Stores -> Configuration -> Customers -> Customer Configuration and open Name and Address Options section there are setting for Show Company and Show Tax/VAT Number choose Required from dropdown and save Configuration and clear cache.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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