You can easily disable magento 2 reviews and ratings functionality directly in the magento backend.
- Go to Stores > Settings > Configuration.
- Open the Catalog tab and choose the Catalog option.
- Navigate to the Product Reviews section and set No in the Enabled field.
- Save the changes.
If you are running a version were you do not have that option then remove the review blocks from your theme (do not disable the Magento_Review module as it can cause errors.
Create or add to your theme the following code under the Magento_Theme/layout/default.xml
file:
<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>
And that is it 🙂