
If you’re looking to Disable compare products in Magento 2, you’re in the right place. Many store owners turn off this feature to streamline their customer experience and reduce distractions. By disabling the compare products feature, you can focus on showcasing your products more effectively, making navigation simpler for your customers. This can improve your site’s performance, reduce clutter, and enhance overall user experience. But how can you easily disable the compare products option in Magento 2? Let’s dive into the quick solutions available for you!
Steps to Disable Compare Products Magento 2
Now that you understand the benefits of disabling compare products in Magento 2, let’s explore three quick methods to do so—whether through layout changes, extensions, or the backend.
Method 1: Remove compare products in Magento 2 from the Layout
Method 2: Using Magento 2 Disable Compare Extension to Disable Functionality
Method 3: Disable product comparison in Magento 2 via Backend [ Enterprise Edition]
Method 1 – Remove compare products in Magento 2 from the Layout
For those who need a more definitive removal beyond just admin settings, adjusting the layout XML files is your go-to option:
- Remove from Product List:
Edit the file located at app/design/frontend/[Vendor]/[theme]/Magento_Catalog/layout/catalog_category_view.xml and include the following XML snippet to remove the compare link:
<referenceBlock name="category.product.addto.compare" remove="true" />
Remove from Product Details:
Edit the file located at app/design/frontend/[Vendor]/[theme]/Magento_Catalog/layout/catalog_product_view.xml and add:
<referenceBlock name="product.info.compare" remove="true" />
Remember to flush the cache after making these changes to ensure they take effect.
Method 2 – Using Magento 2 Disable Compare Extension to Disable Functionality
For store owners who prefer a quick and easy solution without needing to dive into code, using a Magento 2 extension is a great option. The Magento 2 Disable Compare Extension is available for free and can be installed directly from the Magento marketplace. Once activated, it will automatically disable the compare products functionality on your store, offering a hassle-free solution.
If you prefer a trusted, highly-rated extension, CodeDecorator’s Magento 2 Disable Compare Extension is another excellent choice. This free extension provides a seamless way to turn off the compare products feature, ensuring smooth integration and reliable performance without any coding knowledge required.
Method 3 – Disable product comparison in Magento 2 via Backend [ Enterprise Edition]
Since the Enterprise Edition is a paid version, it includes an admin configuration option to disable compare products in Magento 2 easily:
- Log in to the Magento Admin.
- Navigate to Stores > Configuration > Catalog > Catalog.
- Under the Storefront section, find the Allow All Customers to Compare Products option and set it to No.
- Save Config.
This setting will prevent customers from comparing products on your site.
Reasons to Disable Compare Products in Magento 2
1. Improved User Experience: Streamlined Browsing
Disabling compare products in Magento 2 helps create a more focused shopping experience. Customers can easily view product details without being distracted by unnecessary tools, making browsing smoother and more engaging.
2. Enhanced Store Performance: Faster Load Times
Reducing unnecessary features like product comparison Magento 2 can speed up your site by decreasing the number of elements needing loading. This results in faster page load times, improving user satisfaction and reducing bounce rates.
3. Cleaner Interface: Simplified Shopping Journey
A clutter-free website makes navigation easier. By removing compare products Magento 2, you simplify the interface, allowing customers to focus on products and making their shopping journey more efficient.
4. Customization for Specific Needs: A Minimalist Approach
Some stores, particularly those with niche products, may not need a compare feature. Disabling compare products in Magento 2 allows you to customize the shopping experience to fit your specific needs, providing a more streamlined and user-friendly interface.
Common Issues and Troubleshooting Tips
1. Error Messages or Unexpected Behavior
If you see error messages or experience issues after removing Magento compare products, clear your Magento cache in System > Cache Management. Conflicts with other extensions or incorrect settings could cause problems, so check for conflicts and verify your disable method.
2. Reverting Changes
To restore the compare products Magento 2 feature, simply reverse the steps. If using an extension, disable or uninstall it. For code changes, restore your backup files. Don’t forget to clear the cache afterward.
3. Testing and Verifying
Test your store by visiting product pages to confirm the compare feature is disabled. Also, ensure site performance has improved. If the compare option still appears, double-check your changes or refer to the extension’s documentation.
Final Words – Disabling Compare Products in Magento 2
Disabling the compare products feature in Magento 2 can improve site performance and user experience by streamlining browsing and speeding up page load times. Whether using code, extensions, or backend settings, the process is simple and customizable. Be sure to test your changes to ensure everything works smoothly, and if needed, you can easily revert the feature. Overall, removing the compare products option helps create a more focused, efficient shopping environment for your customers.

Share Post
Leave a Reply