cancel
Showing results for 
Search instead for 
Did you mean: 

Admin customer edit phtml files

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

7 REPLIES 7

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.

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 ?

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
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

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

Re: Admin customer edit phtml files

at which place which class you want to add plz let me know.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Admin customer edit phtml files

Customer Information-> Basic Information tab-> text input fields

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

 
I hope it will fulfill your requirement.
--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"