Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Remove below code from <code>Mage_Adminhtml_Block_Customer_Edit_Tab_Account</code> class</p> <p>under <code>initForm()</code> method</p> <pre><code>if ($customer-&gt;getId()) { if (!$customer-&gt;isReadonly()) { // Add password management fieldset $newFieldset = $form-&gt;addFieldset( 'password_fieldset', array('legend' =&gt; Mage::helper('customer')-&gt;__('Password Management')) ); // New customer password $field = $newFieldset-&gt;addField('new_password', 'text', array( 'label' =&gt; Mage::helper('customer')-&gt;__('New Password'), 'name' =&gt; 'new_password', 'class' =&gt; 'validate-new-password' ) ); $field-&gt;setRenderer($this-&gt;getLayout()-&gt;createBlock('adminhtml/customer_edit_renderer_newpass')); // Prepare customer confirmation control (only for existing customers) $confirmationKey = $customer-&gt;getConfirmation(); if ($confirmationKey || $customer-&gt;isConfirmationRequired()) { $confirmationAttribute = $customer-&gt;getAttribute('confirmation'); if (!$confirmationKey) { $confirmationKey = $customer-&gt;getRandomConfirmationKey(); } $element = $fieldset-&gt;addField('confirmation', 'select', array( 'name' =&gt; 'confirmation', 'label' =&gt; Mage::helper('customer')-&gt;__($confirmationAttribute-&gt;getFrontendLabel()), ))-&gt;setEntityAttribute($confirmationAttribute) -&gt;setValues(array('' =&gt; 'Confirmed', $confirmationKey =&gt; 'Not confirmed')); // Prepare send welcome email checkbox if customer is not confirmed // no need to add it, if website ID is empty if ($customer-&gt;getConfirmation() &amp;&amp; $customer-&gt;getWebsiteId()) { $fieldset-&gt;addField('sendemail', 'checkbox', array( 'name' =&gt; 'sendemail', 'label' =&gt; Mage::helper('customer')-&gt;__('Send Welcome Email after Confirmation') )); $customer-&gt;setData('sendemail', '1'); } } } } else { $newFieldset = $form-&gt;addFieldset( 'password_fieldset', array('legend'=&gt;Mage::helper('customer')-&gt;__('Password Management')) ); $field = $newFieldset-&gt;addField('password', 'text', array( 'label' =&gt; Mage::helper('customer')-&gt;__('Password'), 'class' =&gt; 'input-text required-entry validate-password', 'name' =&gt; 'password', 'required' =&gt; true ) ); $field-&gt;setRenderer($this-&gt;getLayout()-&gt;createBlock('adminhtml/customer_edit_renderer_newpass')); // Prepare send welcome email checkbox $fieldset-&gt;addField('sendemail', 'checkbox', array( 'label' =&gt; Mage::helper('customer')-&gt;__('Send Welcome Email'), 'name' =&gt; 'sendemail', 'id' =&gt; 'sendemail', )); $customer-&gt;setData('sendemail', '1'); if (!Mage::app()-&gt;isSingleStoreMode()) { $fieldset-&gt;addField('sendemail_store_id', 'select', array( 'label' =&gt; $this-&gt;helper('customer')-&gt;__('Send From'), 'name' =&gt; 'sendemail_store_id', 'values' =&gt; Mage::getSingleton('adminhtml/system_store')-&gt;getStoreValuesForForm() )); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload