Reading list Switch to dark mode

    Magento 2 Customer Approval for B2B eCommerce Store

    Updated 26 October 2023

    With the use of Magento 2 (Adobe Commerce) B2B Customer Approval module, the admin can manage the customer registration and login into the store. This module enables the admin to approve/disapprove any customer who registers in the store.

    This module allows the admin to restrict the customers from logging in to the store after registration. Additionally, the customer login restriction applies if account approval is pending by the store admin.

    Additionally, the admin can send email notifications upon account approval and disapproval. The Magento 2 Customer Approval module is also compatible with Adobe Commerce Cloud Edition.

    Watch the video tutorial below to know the module workflow:

    LPJA6IQt-ss

    Features

    • Enable / disable the customer approval feature.
    • Allows admin to manage customer approval.
    • Admin may check the customer’s current status as pending, reject, or approved.
    • Supports customer auto approve or manually approve feature.
    • Configure the message for the customers when account approval is required and they are trying to log in.
    • Configure the custom message for the customers after registration.
    • Select email templates for customer approval.
    • Custom email templates for customer disapproval.
    • Custom email templates for customer registration.
    • The customer gets a notification about the approval or disapproval from the store owner’s end.
    • The store owner can approve or disapprove multiple customers as per requirement.

    Installation

    Customers will get a zip folder for Magento 2 Customer Approval module. Thus, they need to extract the contents of this zip folder on their system.

    Searching for an experienced
    Magento 2 Company ?
    Find out More

    However, the folder has an src folder, inside the src folder you have the app folder. So, you need to transfer this app folder into the Magento2 root directory on the server as shown below.

    INSTALLATION

    Hereafter the successful installation, you have to run these commands in the Magento2 root directory.

    First command – php bin/magento setup:upgrade

    cmd1 Magento 2 B2B Customer Approval

    Second Command – php bin/magento setup:di:compile

    cmd2 Magento 2 B2B Customer Approval

    Third Command – php bin/magento setup:static-content:deploy

    cmd3 Magento 2 B2B Customer Approval

    Henceforth post running the commands, you have to flush the cache from the Magento admin panel by navigating through->System->Cache management as shown below.

    INSTALLATION Magento 2 B2B Customer Approval

    Multi Lingual Configuration

    For Multi lingual support, please navigate to Store> Configuration> General > Locale Options. Additionally, select the language of choice from the Locale option.

    change-language-magento-2-locale

    Language Translation

    For module translation, navigate to the following path in your system  app/ code/ Webkul/ CustomerApproval/ i18n/ en_US.csv. Open the file with the name en_US.CSV for editing as shown in the below screenshot.

    LANGUAGE TRANSLATION

    Then replace the words after the comma(,) on the right in the file with your translation words.csv

    After editing and translating the CSV file, you need to save the file name with translation according to your region language and country code such as – de_DE.CSV.

    Henceforth, then upload the file with the translation to the same folder from the same location. Now your module translation is complete.

    Language translation

    Module Configuration

    After the installation, the Adobe Commerce admin can navigate to Stores -> Configuration -> Webkul -> Customer Approval as per the below image.

    192.168.15.157_custapp_pub_admin_admin_system_config_edit_section_customerapproval_key_7acb992214c40b5a39bb436a15a1a16bf935419db5074bf32a58717be09fcd92_screenshot

    Here, the admin will –

    General Settings:

    • Enable Auto Approval for Customers: Set this to “No”, if want the customer’s account to be approved after registration. Else, set this to “Yes”, if want the auto-approval for the customer accounts.192.168.15.157_custapp_pub_admin_admin_system_config_edit_section_customerapproval_key_7acb992214c40b5a39bb436a15a1a16bf935419db5074bf32a58717be09fcd92_screenshot-1
    • Account Pending Status Message: Define the display message for the customers when their account is still in the pending state.
    • Account not Approved Message After Login: Define the display message for the customers when their account is not approved and try to log in.
    • Account not Approved Message After Registration: So, define the display message for the customers after their registration and their account needs to approve.

    Email Templates:

    • Customer Account Approval Email Template: Select the email template for the mail which will be sent to the customers when their account gets approved.
    • Customer Account Disapproval Email Template: Now, select the email template for the mail which will be sent to the customers when their account gets disapproved.
    • Customer Account Pending Email Template: Select the email template for the mail which will be sent to the customer when their account is still in the pending state.
    • Admin Notification Email Template on Customer Registration: Select the email template for the mail which will be sent to the admin on customer registration.
    • After Registration Email to Customer Template: Select the email template for the mail which will be sent to the customers after their registration.

    Note: The admin can even create various custom email templates by navigating to the Marketing -> Communication -> Email Templates.

    templates

    Admin Notification

    • Name- The customer will receive an mail with the same name as per the specification of this section.
    • Email- The recipient customer will see the admin mail id on mail as per the specification of this field.

    And, lastly will hit the Save Config button to save the module configuration successfully.

    Customer Approval Registration

    If the admin has set the “Enable Auto Approval for Customers” option to “No”. Then at the front end, the customer will get a message after their registration as per the below image.

    Customer-Registration-Customer-Approval-module-Webkul

    After the registration, the customer will get a mail on their mail Ids as per the below image.

    mail

    The message and mail will notify the customers that their account needs approval first. So, that the customers can log in into their accounts successfully.

    Customer Approval Login

    If the admin has set the “Enable Auto Approval for Customers” option to “No”. Then at the front end, the customer login will have the following workflow as per –

    When Account Is Not Approved:

    The customers cannot log in and will get an error message when tries to log in. Because their account is not approved yet.

    login

    When Account is Approved:

    When the customer accounts get approved by the admin, they will get a mail as per the below image.

    mail

    Once the account gets approved, the customers can log in to their account easily by navigating to the login page.

    sign-in

    Note: The customers also get notified via mail when they are disapproved by the admin.

    email

    Customer Approval Management

    The admin can easily approve or reject any customer. So, for this, the admin navigates to Customers -> All Customers. 

    customer approval list

    Here, the admin can:

    • View the complete list of the customers.
    • Select the customers from the list whose accounts the admin wants to approve or reject.
    • So, the Next step is to select the “Customer Approval” option from the “Action” drop-down list then admin will get two options Approve and Reject.
    • Select the “Approve” option from the “Customer Approval” if want to approve the customer.
    • Else, select the “Reject” option from the “Customer Approval” drop-down if want to disapprove the customer.
    • And, a pop-up will appear asking for the confirmation as shown below-

    Customer Status

    • The admin will hit the OK button to confirm the action.
    • Admin may check the customer updates status as pending, reject, or approve.
    • Customer status has preset “Pending” after their registration to the store.
    • So, customer Status will be “Pending” until the status has changed as a “Rejected” or “Approved” by admin.

    Customer status list Magento 2 B2B Customer Approval

    NOTE: The customer gets a mail notification of approval or rejection by the store owner.

    Thus, another way of approving or disapproving the customer is by navigating to the Customer Information page as shown below-

    webkul-magento2-b2b-customer-approval-customer-account-information-9

    So, under the Account Information section, the admin will have the Customer Status field. However, the admin will set this option to “Approve” if want to approve the customer.

    Otherwise, set this option to “Reject” if want to disapprove the customer.

    That’s all for Magento 2 B2B Customer Approval module. Still, have any issue please feel free to add a ticket at  https://webkul.uvdesk.com/

    Current Product Version - 4.1.1

    Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Table of Content