Download the PHP package imi/magento2-customer-activation without Composer
On this page you can find all versions of the php package imi/magento2-customer-activation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package magento2-customer-activation
Magento 2 Customer Account Validation
This module is designed to add the possibility for the site owner to manually validate customer accounts at registration. This is useful in cases of B2B or private shops.
Fork
Because the original module is no longer maintained, this module is a hard fork of enrico69/magento2-customer-activation. We aim to maintain it for php 7.4 compatibility and Magento 2.4+ and add functionality.
Prerequesites
This module requires php 7.4 and at least Magento 2.4.
Installation and Update
You can manually download the archive and put its content in the app/code/IMI/Magento2CustomerActivation directory or, the simplest (and recommended) way, install it via composer:
Whatever method you choosed, activate the module and then run the following command:
Configuration
In the admin panel, got to Stores > Configuration > Customers > Customer Configuration
.
Open the Create New Account Options
panel and set Customer account need to be activated by an admin user to true
for the stores where you want to enable the module. You may set your own email templates.
Email Templates
Account Activated Confirmation Notification
Sent to the customer upon activation. The following variables are provided:
- email: Customer email address
- prefix: Customer prefix
- firstname: Customer firstname
- lastname: Customer lastname
Admin Notification
Send to the "Sales Representative" after registration/email confirmation. The following variables are provided:
- customer: The customer object
- customer_admin_url: Link to the customer in adminhtml
- formattedShippingAddress: The address set upon registration (if available/configured)
How does it work?
After the activation of the module and once you have set the configuration to require account activation by an admin user, the following process will be followed.
- At the customer registration, the new customer will be logged-out and a message will notify it that its account is currently waiting for validation.
- The site owner will receive an email notifying them about a new customer waiting for activation.
- Until the account is activated by the admin, customers cannot log in.
- Customers created before the installation are still able to log in and use the site as usual.
- To make an account active, the site owner has to go to the admin panel, edit the customer account and set this value to true: Account is active.