2

I've used the migration tool to import data from a Magento 1 site into a new Magento 2 site. Just a slight problem, on the checkout there is no First Name field for either shipping or billing address.

I'm also missing the title for the section:

<div class="step-title">Enter delivery name and address</div>

Similar to: Magento 2 Checkout not showing all fields

Any ideas how I can restore this field?

  • Cannot save address in account area either, it has the field for firstname but wont save it: "firstname is a required field." – William Oakley Dec 20 '16 at 13:11
3

Alright, I've found the solution to this problem.

You need to edit the customer_eav_attribute table, specificalattribute_id that corresponds to the first name attribute in your eav_table. For me it was the attribute with the ID 23. To show it on the checkout page set the column is_visible to 1, in my situation it was set to 0, what caused it not to show up on the checkout page.

Hope it helps someone who has a similar problem.

  • after migration, for me there was no row for firstname in 'customer_form_attribute' table, i inserted it manually. – Mayank Tailor May 16 '19 at 11:58
2

So turned out the main attributes tables had attributes in a different order and thus with different IDs. But the table that assigned attributes to forms had the IDs from a clean install.

I converted the IDs to match the attributes table and the fields were restored.

  • Can you please tell me where that table is, which assigns the IDs to the form, because I am facing the same issue as you! – brance Jan 11 '17 at 12:36
  • I think it was the eav_form_element table, but eventually I started again and copied data using csv – William Oakley Jan 11 '17 at 12:39
  • I've found the table, and it seems that the attributes are all there (first name is always there for every table ID). I really don't know what is causing the problem here... – brance Jan 11 '17 at 12:46

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.