- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Admin customer edit phtml files
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Admin customer edit phtml files
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Admin customer edit phtml files
Hello @Prince Patel,
Excuse me, I forgot to mention it's Magento 1.9
I believe "vendor" folder is only in M2.0 ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Admin customer edit phtml files
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
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Admin customer edit phtml files
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Admin customer edit phtml files
at which place which class you want to add plz let me know.
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Admin customer edit phtml files
Customer Information-> Basic Information tab-> text input fields
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Admin customer edit phtml files
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
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"