Have just tried to test the checkout form to ensure that my shipping methods are working and the postcode/zipcode and telephone boxes are missing in the checkout form.

enter image description here

After doing some research I've found that this may be due to missing information in the tables eav_form_element and customer_form_attribute but I'm unsure about how to fix this if this is the case.

  • Are you using some extension? For checkout Commented Sep 4, 2018 at 15:19
  • Amasty shipping table rates, rules and restrictions
    – CJNotts
    Commented Sep 4, 2018 at 15:22
  • Check if there ain't any settings of checkout fields or disable that extension and then check if missing fields appear again. Commented Sep 4, 2018 at 15:28
  • Are you using default luma theme ?
    – Pawan
    Commented Sep 4, 2018 at 17:23
  • No. A custom version of the Infortis Ultimo theme
    – CJNotts
    Commented Sep 5, 2018 at 10:48

3 Answers 3


Sometimes, while running our data migration it seems that the tables eav_form_element and customer_form_attribute lost some information during the migration.

The quick fix was to add in the missing postcode and phone number fields into the appropriate tables.

 INSERT INTO `customer_form_attribute` (`form_code`, `attribute_id`) VALUES 
 ('adminhtml_customer_address', '33'), ('customer_address_edit', '33'), 
 ('customer_register_address', '33'), ('adminhtml_customer_address', '34'), 
 ('customer_address_edit', '34'), ('customer_register_address', '34');

INSERT INTO `eav_form_element` (`element_id`, `type_id`, `fieldset_id`, 
`attribute_id`, `sort_order`) VALUES (NULL, '1', NULL, '33', '7'), (NULL, '2', NULL, 
'33', '7'),(NULL, '3', NULL, '33', '6'), (NULL, '4', NULL, '33', '6'), (NULL, '1', 
 NULL, '34', '9'), (NULL, '2', NULL, '34', '9'),(NULL, '3', NULL, '34', '8'), (NULL, 
 '4', NULL, '34', '8');

run these two queries into database, will fix the problem.

Happy Coding !!

  • Thank you, that will help a lot
    – CJNotts
    Commented Feb 11, 2020 at 19:35
  • your welcome!! @CJNotts Commented Feb 17, 2021 at 9:43
  • this happened to me too, -> 2.4.2-p1; adding the attributes fixed it. Thanks mucho Commented Aug 4, 2021 at 23:09
  • BTW @RohitChauhan - do you have any idea which part of the migration causes this and why? Commented Aug 5, 2021 at 17:28
  • @grok_in_full its part of the attribute migration Commented Aug 6, 2021 at 13:33

refer to this for some more info: https://stackoverflow.com/questions/47022537/magento-2-checkout-missing-postcode

check the references to eav_attribute table in the tables mentioned in the answer above and add the indexes that you are missing.

for me this was also caused by migration, but not fixable with a backup.


OK, basically this was some kind of database error.

think I've resolved it by restoring a backup file of the site from a time when I was not having this issue and then and then restoring the more recent version without the database.

This seems to have fixed the issue but I can't be certain which of the tables in the database was causing it.

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.