Download the PHP package alaa/magento2-dynamic-front-name without Composer
On this page you can find all versions of the php package alaa/magento2-dynamic-front-name. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alaa/magento2-dynamic-front-name
More information about alaa/magento2-dynamic-front-name
Files in alaa/magento2-dynamic-front-name
Package magento2-dynamic-front-name
Short Description Magento 2 Dynamic Front Name
License MIT
Informations about the package magento2-dynamic-front-name
Dynamic Admin Front Name
A Magento 2 module that changes the admin front name periodically via cron and sends emails to admins the new backend url.
Installation
composer require alaa/magento2-dynamic-front-name
php bin/magento module:enable Alaa_DynamicFrontName
php bin/magento setup:upgrade
Documentation
- Configuration from the admin panel Admin > Stores > Configuration > Dynamic Front Name.
- Enable set to yes by default.
- Sender Email can be configured by adding the sender email, if left empty then the email from the first admin will be used as the sender.
- Front Name Length, sets the length of the string of the front name, 8 characters are default.
- Cron Expression, how often the front name will be changed. The default is once a week every Sunday.
- The front name is generated using Magento core functions to generate random strings.
Running the cron via magerun2
Development
The sending emails is triggered via area code emulation. If Sample Data is installed, then the following plugin from _MagentoCustomerSampleData module needs to be disabled because it prevents sending emails via area code emulation.
This module is not responsible for disabling the plugin, so you need to add the following to a di.xml
file in a module with that responsibility.
Also make sure your module depends on _MagentoCustomerSampleData and configure in the module.xml
file.
Note: Please make sure you don't send emails to customers when disabling this plugin, this plugin was put for a reason which is to prevent customers from getting emails in a test environment. You can do this by removing magento cron entry in the crontab and instead run specific crons using the magerun2 tool.
Contribution
Feel free to raise issues and contribute.
License
MIT
All versions of magento2-dynamic-front-name with dependencies
magento/framework Version 101.0.*
magento/module-store Version 100.2.*