Magento Forum

   
Setup new customer request accept or deny
 
Ashish Arora
Member
 
Total Posts:  54
Joined:  2009-11-15
 

I m builting new magento store…

i have two basic requirements....

1) Allow customers to select which customer group they want to join on the registration time

2) Allow admin to accept or reject reuests or users . eg if a customer would like to join as a wholesale customer admin has rights whether he want to allow it or not

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

hey plz guyz help me ....

i need to do it very urgent

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

HI tzyganu

thanx for ur action..

but the problem is not resolved yet…

i didnt understand what is in thread u specified…

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

thanx tzyganu

i had done it you can check here

http://www.magentocommerce.com/boards/viewthread/24208/

thanx for help anywaz....

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

Now half of my problem is resolved....

next i want that admin can accept or deny the request of the users before they can start purchasing products.......

bcz prices are different for wholesalers and general users…

i dont want fake wholesale users to purchase in my store

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

somebody reply plz if the know abt it…

i need it urgent

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

Second problem is also resolved
install customer activation ectension
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