Summary
When I try to place an order after the customer registration/Login. Magento 2.3.3 shows "First Name is a required Field Error. Firstname field is not displayed. When I try create shipping address at profile page or at backend – firstname field is displayed but same validation error occured!
Data was migrated from 1.9.3.4 by Data migration tool
I read about same troubles in another versions magento but no solutions found
I try to play with eav_attribute and customer_eav_attribute. I put is_visible=1 and is_required=0 but It not helps
Steps to reproduce
- Login
- Checkout order
- Fill shipping form
- Error displayed: Please check the shipping address information. "firstname" is required. Enter and try again.
Screenshots
2
Answers
I have this issue on my end after migration from Magenro 1.9 to magento 2.3.3, for me this way is working :
run on your mysql command line
it will showing like this
then run the following query , don’t forget to change attribute_id based on your end:
I’ve just experienced this issue after migrating from 1.9 to 2.4.3.
My solution was to back up the customer_form_attribute table and truncate it (remove all the data).
I then placed the following code which I had lifted/amended from vendor/magento/module-customer/Setup/Patch/Data/DefaultCustomerGroupsAndAttributes.php into a file in the root directory of my Magento 2 installation and ran it.
The customer_form_attribute table was rebuilt and everything worked after that.