I want product review to be shown on the product details page, but reviews should not be shown on the product listing page irrespective of they are available or not.
Kindly help me to do this.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
The following file is used for products listing page:
or it may be in your current theme at the following path:
If the file is not in your applied theme, then you need to override it in your applied theme first.
Then open the file and just comment/delete the following line:
<?= $block->getReviewsSummaryHtml($_product, $templateType) ?>
and run the following command:
php bin/magento s:s:d -f (if not developer or default mode) php bin/magento cache:clean