Magento 2 B2B Registration Form extension facilitates a separate sign-up form for B2B customers and provides admin the ability to approve or reject B2B customer registrations.
Table of Content
- Extension Installation Guide
- Configuration
- Registration Settings
- Approval Settings
- Admin Email Notification Settings
- Customer Email Notification Settings
- Google reCAPTCHA Settings
- B2B Registration Form in Frontend
- B2B Registration Details in Backend
- B2B Registration Approval Email to Customers
- For Magento Marketplace Customers:
Find the extension’s Composer name and version in its composer.json file.
- Login to your SSH and run:
- composer require meetanshi/magento2-b2b-registration-form
- Enter your authentication keys. Your public key is your username; your private key is your password.
- Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
- To verify that the extension is installed properly, run the command:
- php bin/magento module:status Meetanshi_B2BRegistration
- By default, the extension is probably disabled. Enable the extension and clear static view files:
- php bin/magento module:enable Meetanshi_B2BRegistration --clear-static-content
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- For Meetanshi Customers:
- Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
- Login to your SSH and run below commands step by step:
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- That’s it.
- Configuration
For configuring the extension, log in to Magento 2, move to Stores > Configuration > B2B Registration Form where you can find various settings to enable the extension.
- B2B Registration Form: Enable or disable B2B Registration Form extension from here.
- Registration Settings
Here, you can find various settings for the registration form.
- Registration Form URL Key: Enter registration form URL key for the registration form page.
- Enable Top Link in Header: Select YES to enable a top link in the header.
- Top Link URL Anchor Text: Set anchor text for the registration form URL in the top link.
- Registration Form Title: Enter the B2B registration form title.
- Add Name Prefix in Form: Select YES to add name prefix field in the form.
- Name Prefix Dropdown Options: Add semicolon-separated name prefixes to show in the form.
- Add Middle Name in Form: Select YES to add the middle name field in the form.
- Add Name Suffix in Form: Select YES to add the name suffix field in the form.
- Name Suffix Dropdown Options: Add semicolon-separated name suffixes to show in the form.
- Add Other Form Fields: Select other form fields to show in the registration form.
- Assign Customer Group: Select customer group to assign to new approved B2B customers.
- Disable Default Registration: Select YES to disable Magento 2 default registration.
- Approval Settings
You can either enable auto-approval of B2B registrations or manually approve them from the backend by setting here.
- Auto Approve Registrations: Select YES to auto-approve B2B registrations.
- Form Submission Success Message: If the auto-approval is set to NO, add form submission success message to show in the frontend.
- Form Submission Failure Message: If the auto-approval is set to NO, add form submission failure message to show in the frontend.
- Admin Email Notification Settings
Configure the settings to send Email notifications to the admin on new B2B registration form submission.
- Send Email Notification to Admin: Select YES to send Email notification to the admin when a new B2B registration form is submitted from the frontend.
- Email ID: Enter the Email ID of the admin.
- Email Sender: Select the Email sender.
- Email Template: Select the Email template.
- Customer Email Notification Settings
Configure the settings to send Email notifications to the customers after their B2B account approval or disapproval.
- Send Email Notification to Customers: Set YES to send Email notification to the customers on B2B account approval or disapproval.
- Email Sender: Select the Email sender.
- B2B Account Approval Email Template: Select template to send an Email to customers on their B2B account approval.
- B2B Account Disapproval Email Template: Select template to send an Email to customers on their B2B account disapproval.
- Google reCAPTCHA Settings
Enable Google reCAPTCHA in the B2B registration form to avoid spam registration requests.
- Google reCAPTCHA: Enable the Google reCAPTCHA v3.
- Site Key: Enter the site key obtained while registration with Google reCAPTCHA.
- Secret Key: Enter the secret key obtained while registration with Google reCAPTCHA.
- B2B Registration Form in Frontend
Once the settings are configured, the B2B Registration Form URL is enabled in the top link section of the store frontend. Click the URL to go to the registration form, fill the details and submit to send for approval.
- B2B Registration Form Submission Success Message
After the form is submitted, customers can see form submission success message as set from the backend.
- New B2B Account Registration Email to admin
Once a customer submits B2B account registration form from the frontend, the admin gets an Email notification.
- B2B Registration Details in Backend
When the customers submit B2B registration form from the frontend, all the B2B registration form details are stored in the Customers grid in the backend. The admin can view and manage the B2B registrations from here.
- B2B Account Status Change
Admin can click on edit to change the status of the B2B account if automatic account approval is not set. Admin can approve or disapprove a B2B account status from the Account Information tab.
- B2B Registration Approval Email to Customers
Once the admin approves a B2B account from the backend, the respective customers get an Email notification with the login link and details.