Question

I have a normal B2C store. Now I would like to add B2B users to this shop.

How do I create a second user registration form for B2B users?

Users created here should automatically be added to a B2B user group but need a manual activation.

I found many extensions around this topic but the turn the shop into B2B online shops, like hiding prices. Maybe this will do the trick, not sure how to configure it for what I need...

Update

I created a CMS page for the b2b login and added the login form:

{{block type ="Mage_Customer_Block_Form_login" template="customer/form/login.phtml" }}

With a copy of login.phtml I can create a custom login.

How do I change the customer group for user registration here? Also it would be nice to disable the account after creation.

Update 2

I removed the CMS page and created a new module with b2b page containing a block for login and a copy of the customer register block. I also copied and modified the createpostAction().

Was it helpful?

Solution

Creating a second form might not be the best solution. I'd like to suggest 2 other options.

1) creating a second website in Magento and putting a login in front of it using this extension. Then when people register for this shop you can add then to a specific customer group automatically.

Some benefits are different prices, payment methods, shipping methods and display prices without tax on this shop while it doesn't affect the B2C shop.

2) A more simple approach is letting people sign up using the normal form and afterwards assigning them to a different customer group manually to give them access to customer group specific prices.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top