Created
February 12, 2018 13:28
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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