-
- shan_84

-
Total Posts: 3
Joined: 2008-05-08
|
i want to control the register customer in admin panel with, admin able to activate or deactivate the customer, after admin approve the register user can login to magento site. for that i add custom field in admin section and enable the customer. please help how to do that one… its very help for us…
for this i add following code in app\code\core\Mage\Adminhtml\Block\Customer\Edit\Tab\Account.php
if ($customer->getId()) {
$newFieldset = $form->addFieldset(
‘password_fieldset1’,
array(’legend’=>Mage::helper(’customer’)->__(’Customer Activation’))
);
// New customer password
$field = $newFieldset->addField(’peachtree_id’, ‘text’,
array(
‘label’ => Mage::helper(’customer’)->__(’Peach ID’),
‘name’ => ‘peachtree_id’,
‘index’ => ‘peachtree_id’
)
);
$field = $newFieldset->addField(’status’, ‘select’,
array(
‘label’ => Mage::helper(’customer’)->__(’Status’),
‘name’ => ‘status’,
‘width’ => ‘50px’,
‘index’ => ‘status’,
‘type’ => ‘options’,
‘options’ => array(
0 => Mage::helper(’customer’)->__(’Disabled’),
1 => Mage::helper(’customer’)->__(’Enabled’)
),
)
);
if some one help this is very important and more helpful for others to....
|