Skip to content

Instantly share code, notes, and snippets.

@MageryThemes
Created February 12, 2018 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MageryThemes/896680725908a6ae0d863f1432c3b987 to your computer and use it in GitHub Desktop.
Save MageryThemes/896680725908a6ae0d863f1432c3b987 to your computer and use it in GitHub Desktop.
Remove reviews tab in Magento 2 - conditional block removal by alias https://magery-themes.com/disable-reviews-magento2.html
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="product.info.details">
<action method="unsetChild" ifconfig="catalog/review/is_disabled">
<!-- remove "reviews.tab" block by alias -->
<argument name="block" xsi:type="string">reviews</argument>
</action>
</referenceBlock>
</body>
</page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment