EmicoEcommerce/Magento2Tweakwise

View on GitHub
view/frontend/layout/catalog_category_view.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<!--
/**
 * Tweakwise (https://www.tweakwise.com/) - All Rights Reserved
 *
 * @copyright Copyright (c) 2017-2022 Tweakwise.com B.V. (https://www.tweakwise.com)
 * @license   http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="Tweakwise\Magento2Tweakwise\Block\Catalog\Product\ProductList\Featured"
                   name="tweakwise.catalog.product.featured.before"
                   ifconfig="tweakwise/recommendations/featured_enabled"
                   template="Magento_Catalog::product/list/items.phtml">
                <arguments>
                    <argument name="type" xsi:type="string">new</argument>
                </arguments>
            </block>
        </referenceContainer>
    </body>
</page>