Hello Magento folks,
Welcome to the Magento Tutorial Blog. Today I am here to help you in How to Custom Maintenance mode Page in Magento 2. Also, go through our last published blog How To Hide Add To Cart Button in Magento 2. Let’s get in.
Mainly, all the store owners will choose to hide their maintenance activities from their customers. For many reasons, the customer can feel insecure or might get irritated if they see an under-construction site. So, to overcome this problem the Magento provides an inbuilt feature of making your site into Maintenance mode. Here, in the Maintenance mode, the Magento 2 closes the store for the visitors. Let’s learn How to Custom Maintenance mode Page in Magento 2.
Step 1: Go to the pub/error folder then rename local.xml.sample to local.xml file:
<?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */--> <config> <skin>magecomp</skin> <!-- Add your custom folder name --> <report> <!-- "action" can be set to "print" to show exception on screen and "email" to send exception on specified email --> <action>print</action> <!-- in "subject" you can set subject of email --> <subject>Store Debug Information</subject> <!-- "email_address" admin email address --> <email_address></email_address> <!-- "trash" is handle about trace info value "leave" is for store on disk value "delete" is for cleaning --> <trash>leave</trash> </report> </config>
Step 2: Now copy the default folder and rename it. Give name magecomp because we add this name on skin tag in local.xml
Step 3: Now go to magecomp folder and open 503.phtml and add your custom code and design to show custom maintenance page
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */?> <h1>Service Temporarily Unavailable</h1> <p> The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. </p>
Step 4: Refresh the page.
Hence, after the implementation of the above steps, you will be able to set up a Custom Maintenance mode Page in Magento 2. Make your customer experience better by applying the Custom Maintenance mode Page in your Magento 2 store.
To avoid the above steps, integrate Magento 2 Maintenance Page Extension to painlessly display a user-friendly maintenance page with a countdown-timer.
Tell us at MageComp Support in case of any difficulties in the above solution. Don’t forget to share with your Magento fellas and also share your appropriate reviews in the comment section below.
Happy Coding.
Generating image thumbnails is a common requirement in web applications, especially when handling media-heavy content.…
In today’s digital landscape, web application security is paramount. As a powerful PHP framework, Laravel…
October was an exciting month for MageComp! From significant updates across our Magento 2 extension…
In modern web development, seamless navigation and state management are crucial for delivering a smooth…
Magento Open Source 2.4.8 beta version released on October 8, 2024. The latest release of…
Hello Magento Friends, Creating catalog price rules programmatically in Magento 2 can be a valuable…
View Comments
Are these instructions still valid in magento 2.4.5? because in maintenance mode it gives error message 1 exception(s):
maintenance mode enabled.
Yes it is valid for that as well.
Just confirm from where your site is running.