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

Wholesale vs. Retail Customer destinguishing
 
JRoeck
Jr. Member
 
Total Posts:  13
Joined:  2008-08-09
 

Hello -

we are currently building a shop and your extension would perfectly fit into our requirements of what we need to do. Yet we need the approval only for Wholesale-Customer not for Retail Customer. Is there a way to separate by Customer Type who needs to go through the approval ?

Thanks in advance.
Juergen

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

i require the same feature.....

is there any solution of that ?????????

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

Resolved

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
 
hridaya
Member
 
Avatar
Total Posts:  63
Joined:  2009-02-04
Nepal
 

hello,

But for magento version 1.4.2

$gid=$customer->getGroupId();

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

code should be placed just after the (true === $validationResult) { $customer->save();

But still send activation notification email about the general user registration .Which is not required. So how can i disble it if the general user registration..

Thank you
hridaya

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