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

Customer Authorization for B2B
 
bh_scripts
Jr. Member
 
Total Posts:  1
Joined:  2009-01-21
 

Using a different ecommerce package (clue: starts with ze...) I created a B2B website where trade customers can register but must be authorised before able to purchase. The authorization is done by the store owner in the admin panel.

I would like to do another B2B website in magento BUT I cannot see how I can replicate the above process. It appears there is no customer authorisation possible. A second best option may be to turn off registration and create the user logins from within admin.

Would like to hear if any of this is possible. ??

 
Magento Community Magento Community
Magento Community
Magento Community
 
flyingman024
Jr. Member
 
Total Posts:  7
Joined:  2009-01-12
 

same with me....

can anybody explain this case ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
conversem
Jr. Member
 
Total Posts:  3
Joined:  2008-10-17
 

I am also interested in this. wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
Yooplaboom
Jr. Member
 
Total Posts:  30
Joined:  2008-11-25
 

Hi,

For customer activation, there’s this module :
http://www.magentocommerce.com/extension/489/customer-activation

A second best option may be to turn off registration and create the user logins from within admin.

This is what I’ve done for a project :
Add in app\design\frontend\default\YOURTHEME\template\page\hml\head.phtml :

<?php
$logUrl 
$this->helper('customer')->getLoginUrl();
$currentUrl Mage::helper('core/url')->getCurrentUrl();
if(
Mage::app()->getWebsite()->getName() == 'your website name' && $currentUrl != $logUrl {
    
if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
             header
("Location: $logUrl");
             exit;
    
}
}
?>

Then, hide the subscription form in :
app\design\frontend\default\YOURTHEME\template\customer\form\login.phtml

Hope it’ll help you smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
MrSmileyJr
Member
 
Total Posts:  43
Joined:  2009-10-19
 

Can this be limited to the wholesale store in a multistore setup? That way only wholesale customers will be blocked. Also, is the customer notified upon approval/denial? I also posted by the extension

Oh and yoopa, can u explain what your code is doing? (sorry I’m not yet familiar with magento specific calls…

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