Hello,
I want to edit the customer form fields in admin panel, but I can't find the location of the .phtml files.
Can you help me please?
Thanks
Hi @fruit_80
Welcome to the Magento Community Forum.
Magento use UI component in customer edit form. You can find customer_form.xml at
vendor/magento/module-customer/view/base/ui_component/customer_form.xml
If Issue Solved, Click Kudos/Accept As solutions.
Hello @Prince Patel,
Excuse me, I forgot to mention it's Magento 1.9
I believe "vendor" folder is only in M2.0 ?
Its not coming from phtml file, It's coming from php file,
Check below location,
app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Account.php
all the field is coming from setup.php file,
app/code/core/Mage/Customer/Model/Resource/Setup.php
I only need to add a class to the input field found in admin customer form. That's why I was looking for a .phtml file
Thanks
at which place which class you want to add plz let me know.
Customer Information-> Basic Information tab-> text input fields
Hello @fruit_80,
You can not add class on customer attribute by setup script in Magento way. Backend all fields are rendered on below template files. So you need to add condition for customer and attribute wise to add class.
Path: adminhtml\default\default\template\widget/form/renderer/fieldset/element.phtml