Disable popup message in Magento 2.0

Disable popup message in Magento 2.0

July 24, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Disable popup message in Magento 2.0

Hiding the Checkout Popup in Magento 2.0: A Comprehensive Guide

As a Magento developer working on your first custom theme without using any base template, you may have encountered the default checkout popup message that prompts users to create an account. By default, this message appears when customers proceed to the checkout process.

The question is: How can I effectively disable this message and remove it from the HTML code without merely hiding it through CSS?

Disabling the Checkout Popup Message

To remove the checkout popup completely in Magento 2.0, you need to override the core layout file that defines its behavior. Here’s a step-by-step guide:

  1. Create a custom layout file In your theme directory (which should be located inside app/design/frontend/your_vendor/your_theme), create a new folder named Magento_Checkout if it doesn’t exist.

  2. Duplicate the core layout file Navigate to vendor/magento/module-checkout/view/frontend/layout. Locate the XML file named checkout_index_index.xml.

  3. Copy this file and paste it into your custom app/design/frontend/your_vendor/your_theme/Magento_Checkout folder.

  4. Update the layout file Open the copied checkout_index_index.xml file in a text editor. Look for the following XML element:

<referenceContainer name="content">
    <block class="Magento\Checkout\Block\Checkout\LayoutProcessor"
           name="checkout-layout-processor" as="layout_processor"/>
</referenceContainer>
  1. Remove or comment out this entire <referenceContainer> section.

  2. Save the file.

Note: Remember that modifying core files directly is generally not recommended, as it can cause issues during upgrades. It’s better to copy them into your theme folder and make modifications there.

If you prefer a more sustainable approach without overriding core files, consider using Magento’s plugin system:

  1. Create a custom module Generate a new module in the app/code/your_vendor/YourModule directory with the necessary setup instructions and registration files.

  2. Create a layout file Inside your module, create the necessary XML files to override or replace the core layout as described above.

  3. Apply the plugin Use Magento’s plugin system to overwrite the relevant methods in the Magento\Checkout\Block\LayoutProcessor class within your custom module.

The key is to understand that removing the popup requires a deep knowledge of how Magento’s layout and block systems work together to render content on the checkout page. As you gain more experience with Magento development, understanding these concepts will become second nature.

Remember, customizing Magento themes is a powerful way to differentiate your online stores from the competition while providing a better user experience.

To learn more about Magento theme development and how to make the most of its extensive ecosystem for e-commerce businesses, I recommend exploring the resources available at Laravel Company. There, you’ll find in-depth tutorials, best practices, and advanced techniques from experienced Magento developers.

In conclusion, while removing the checkout popup message requires some technical knowledge of XML layouts and block systems, it’s an essential skill for any Magento developer looking to create unique and customized shopping experiences. By following this guide, you can effectively remove this message from your custom theme without relying on CSS workarounds.

Magento 2 Checkout Extensions Themes

Our network