Sign In


How to add wholesale signup in magento

This Blog will helpful to add signup for wholesale in your store, you can also learn How to Activate customer through admin, How to assign group to registered user. How to add Custom field into form and add attribute to store.

Whole post is divided in three part

1) Add Link on home page and register form.

2) Assign group to new register user.

3) Add Customer Attribute and Custom For field into form.

4) How to Activate User Through Admin and notify Customer and Admin about new Customer or Wholesaler.

Step 1: How to Add Link and Register form?

Now We will learn to add link as per below.add link to headaer

For that we will Copy the core file into our default folder or template. best practice is edit core file after copying into default folder instead of direct editing into core file.

Follow below step for copy and add link.

Copy core File from location: app/design/frontend/base/default/layout/customer.xml to app/design/frontend/default/default/layout/customer.xml

Add below code to customer.xml

When we click on Wholesale for open registration form it will do nothing. to start working this link we need to create CMS Page.

How to create a CMS Page?

Login into Admin Panel and follow below step

Click on CMS => Pages then

Click on Add New Pages button.

Set “Page Title” and “Url Key” as wholesale.

Now, Click on “Design” tab inside “layout update XML” add below code

Above code will add template to new created page.

Above code will use to show addresss fields into wholesale registration form. if you do not want to add address field then put false instead of true.

Now we, will

Create a register.phtml for wholesale login as per below structure



Step 2: How to Assign Group to wholesale or General customer?

Open register.phtml and add below code after line No. 51.

Note: Default value is give as above. but it May be different; put as per your wholesale group value.

How to Find Value:

=> Customer => Manage Customer.

=> in Group click on drop down then count number of Wholesale from first group.

=> whatever number you get it will be your value.

Now open AccountController.php