Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

create new field and update to database
 
shan_84
Jr. Member
 
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....

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top