2

How to make city field not required on checkout?

1 Answer 1

2

Run this query in database

UPDATE `eav_attribute` SET `is_required` = 0 WHERE `attribute_code` = 'city';

this will remove required.

3
  • This is not working for magento 2.2.6.. :(
    – Ask Xah
    Dec 1, 2018 at 6:47
  • This is not working for Magento 2.3.* Jul 2, 2019 at 8:42
  • Not working for Magento 2.4 either
    – Adnan
    Oct 8, 2020 at 13:41

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.