I have a problem on customer account create form on frontend. As it can be seen in the screenshot provided. First Name, Last Name and Email fields are duplicated.
Where is the logic that generates that block and how does Magento decide which fields to put there?
I've manage to find
module-customer/view/frontend/templates/form/register.phtml by looking into
On line 25 this is called
<?php echo $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Name')->setObject($block->getFormData())->setForceUseCustomerAttributes(true)->toHtml() ?>
I've checked out
'Magento\Customer\Block\Widget\Name' but can not find the portion of code that decides how many fields to show and on what information is this based on.
Any pointers on how to debug this or further inspect are highly appreciated.
I found the template associated with the widget
module-customer/view/frontend/templates/widget/name.phtml still can't figure out the duplicates or from where email appeared given that it is nowhere to be found in this template