Magento Forum

   
Stop new customers to start purchasing before admin allow them
 
Ashish Arora
Member
 
Total Posts:  54
Joined:  2009-11-15
 

Hi i m building a new magento store....

i want an interesting thing to be done ....

i want to stop new customers to start purchasing before admin allow them…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ashish Arora
Member
 
Total Posts:  54
Joined:  2009-11-15
 

reply ASAP i need it urgent

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ashish Arora
Member
 
Total Posts:  54
Joined:  2009-11-15
 

resolved
install customer activation extension
THen do the following change

Go to app/code/core mage/customer/controller/accountcontroller.php

/ * $customer->getGroupId();*/
Find the above line in ur page under function createPostAction()

paste the below code after this and u r done.................. 

$cid=$customer->getCustomerId();

$gid= $customer->getGroupId();
if($gid != 2)
{
$customer-> load($cid);
$customer -> setCustomerActivated(1) -> save();
}

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