Call-back icon  Sales: Call 800.374.8146 (N America)|757.278.0920 (International)

Magento

Open Source eCommerce Evolved

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
 
Sales: Call 800.374.8146 (North America) 757.278.0920 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
33523 users|459 users currently online|74429 forum posts