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

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

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
 
Avatar
Total Posts:  54
Joined:  2009-11-15
India
 

reply ASAP i need it urgent

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

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