Customer reviews reflect the product or service assessment that encourages potential visitors for conversions.
However, for some reason, the store owner may want to disable Magento 2 reviews and ratings.
The older versions offered an option in the admin panel to disable them. But with Magento 2.2.x versions and above, that option is not available and hence here’s the solution for the same.
Also, it is not advisable to disable the Magento_Review module as it causes errors. A better idea is to hide it with XML as shown below:
Steps to Disable Magento 2 Reviews And Ratings:
- Add the below code at app/design/frontend/theme_folder/theme_name/Magento_Theme/layout/default.xml
123456789<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"><body><referenceBlock name="reviews.tab" remove="true" /><referenceBlock name="product.review.form" remove="true" /><referenceBlock name="product.info.review" remove="true" /><referenceBlock name="customer-account-navigation-product-reviews-link" remove="true" /><referenceBlock name="review_view" remove="true" /></body></page>
Note: If you don’t have a theme, create child theme in Magento 2. After that, create file app/design/frontend/theme_folder/theme_name/Magento_Theme/layout/default.xml and add the above code in default.xml file.
The above method works with all Magento 2 versions.
Feel free to post your doubts on the Comments section below and I’d be happy to help.
Do share the solution with fellow developers via social media.