Skip to content
Customizing Maintenance Mode: A Magento 2 Plugin
E-commerce · Updated on · 5 min read

Customizing Maintenance Mode: A Magento 2 Plugin

If you have ever managed an e-commerce site on Magento 2, you know how important it is to be able to put the site into maintenance mode without compromising the user experience. Magento 2 offers a basic maintenance mode, but it has some limitations, especially when the site is in developer mode. In this mode, it is impossible to customize the 503 page that tells customers the site is offline for maintenance. This is where my latest plugin for Magento 2 comes in.

Maintenance Mode Issues in Magento 2

Out of the box, Magento 2 lets you enable and disable maintenance mode, but it does not offer a flexible way to customize the service page in all of the site’s operating modes. This is a problem for anyone who wants to keep clear and professional communication with their customers, letting them know about ongoing maintenance work.

The Solution: My Plugin

The plugin I developed solves this problem effectively. Here are some of its main features:

  1. Storefront customization: You can now create a custom maintenance page through the CMS Page section of the Magento admin panel. This lets you keep your communication consistent with your brand, even during maintenance periods.
  2. Compatibility with All Modes: The plugin lets you enable the custom maintenance page in all of the site’s operating modes, including developer mode. You no longer have to worry about the limitations imposed by the mode your site is in.
  3. Access for Specific IPs: You can specify certain IP addresses that are allowed to access the storefront. This is particularly useful for developers or team members who need to check that everything works correctly during the maintenance period.

How It Works

The plugin is easy to install and configure. Once installed, you will find a new page in the CMS Page section of the Magento admin panel. Here you can create and customize your maintenance page to suit your needs. You can then enable maintenance mode through the plugin, and your custom page will be shown to users. You can also specify the IP addresses that will have access to the site during maintenance, allowing team members to keep running the checks they need.

Install it via composer:

composer config --global --auth github-oauth.github.com 

composer config repositories.threecommerce_base vcs https://github.com/Threecommerce/m2-base.git

composer config repositories.threecommerce_maintenance vcs https://github.com/Threecommerce/m2-maintenance.git

composer require threecommerce/m2-base:dev-main

composer require threecommerce/m2-maintenance:dev-main

Benefits for Your E-commerce

Adopting this plugin brings numerous advantages:

  • Better User Experience: Your customers will always be informed in a clear and professional way.
  • Operational Flexibility: You can carry out site maintenance without limitations, while still being able to check your changes in real time.
  • Ease of Use: Magento’s intuitive admin interface makes customizing the maintenance page a breeze.

Conclusions

Our new Magento 2 plugin is an essential tool for anyone running an e-commerce store on this platform. It offers the flexibility needed to customize communication with customers during maintenance periods and guarantees an optimal user experience in all of the site’s operating modes. Don’t let yourself be limited by Magento 2’s default settings: with my plugin, you can manage your site’s maintenance in a professional and effective way.

Find out more and try the plugin today to see how it can improve the management of your e-commerce site!

You might also like