How to remove the company field from the frontend customer account settings in Magento

The add/edit address form which logged in customers can use (accessible from their account settings) to add or edit shipping and billing addresses has an optional field labeled Company. If you want to hide the company field from being displayed on the add/edit address form, you have to modify the code of one of your Magento files.

That file is edit.phtml. If the root Magento directory on your Magento hosting account is public_html and you use the base theme that comes prepackaged with the application, then the path to the file will be public_html/app/design/frontend/base/default/template/customer/address/edit.phtml. In the file find and comment out the code (around line 50):

<li class="wide">
<label for="company"><?php echo $this->__('Company') ?></label>
<div class="input-box">
<input type="text" name="company" id="company" 
title="<?php echo $this->__('Company') ?>" 
value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" 
class="input-text <?php echo $this->helper
('customer/address')->getAttributeValidationClass('company') ?>" />

To comment out HTML code put an exclamation mark and two hyphens after the first bracket (e.g. <!--li) and two hyphens before the last bracket (e.g. /li-->). You can edit files directly on your hosting account from the Files section of the Pixie control panel. Another way to do it is to download the file with an FTP client (e.g. FileZilla), edit it on your local computer with a text editor (e.g. Notepad, Wordpad) and upload it back overwriting the old file.

For information on how to remove the company field from the checkout page read the article on removing the company field from the checkout page in Magento.

If you want to remove other fields from the add/edit address form of the customer account settings, you may find useful the following articles:

Was this answer helpful?

 Print this Article

Also Read