init
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
|
||||
<acl>
|
||||
<resources>
|
||||
<resource id="Magento_Backend::admin">
|
||||
<resource id="WeltPixel_Backend::WeltPixel">
|
||||
<resource id="WeltPixel_LayeredNavigation::LayeredNavigation_Label" sortOrder="90"
|
||||
title="LayeredNavigation">
|
||||
<resource id="WeltPixel_LayeredNavigation::LayeredNavigation_General" sortOrder="10"
|
||||
title="LayeredNavigation Settings"/>
|
||||
</resource>
|
||||
</resource>
|
||||
<resource id="Magento_Backend::stores">
|
||||
<resource id="Magento_Backend::stores_settings">
|
||||
<resource id="Magento_Config::config">
|
||||
<resource id="WeltPixel_LayeredNavigation::LayeredNavigation"
|
||||
title="WeltPixel LayeredNavigation" sortOrder="283"/>
|
||||
</resource>
|
||||
</resource>
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
</acl>
|
||||
</config>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Backend\App\AbstractAction">
|
||||
<plugin name="weltpixel-layerenavigation-utility" type="WeltPixel\LayeredNavigation\Plugin\Utility" sortOrder="1000" />
|
||||
</type>
|
||||
</config>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
<event name="product_attribute_form_build_weltpixel_layerednavigation_tab">
|
||||
<observer name="wp_layeredNavigation" instance="WeltPixel\LayeredNavigation\Observer\Edit\Tab\Front\WpProductAttributeFormBuildFrontTabObserver" />
|
||||
</event>
|
||||
<event name="catalog_entity_attribute_save_after">
|
||||
<observer name="wp_layeredNavigation_attribute_options" instance="WeltPixel\LayeredNavigation\Observer\WpCatalogAttributeSaveAfterObserver" />
|
||||
</event>
|
||||
</config>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
|
||||
<menu>
|
||||
<add
|
||||
id="WeltPixel_LayeredNavigation::LayeredNavigation_Label"
|
||||
title="Layered Navigation"
|
||||
module="WeltPixel_LayeredNavigation"
|
||||
sortOrder="390"
|
||||
parent="WeltPixel_Backend::WeltPixel"
|
||||
resource="WeltPixel_LayeredNavigation::LayeredNavigation_Label"
|
||||
/>
|
||||
<add
|
||||
id="WeltPixel_LayeredNavigation::LayeredNavigation_General"
|
||||
title="Layered Navigation Settings"
|
||||
module="WeltPixel_LayeredNavigation"
|
||||
action="adminhtml/system_config/edit/section/weltpixel_layerednavigation/"
|
||||
sortOrder="10"
|
||||
parent="WeltPixel_LayeredNavigation::LayeredNavigation_Label"
|
||||
resource="WeltPixel_LayeredNavigation::LayeredNavigation_General"
|
||||
/>
|
||||
</menu>
|
||||
</config>
|
||||
@@ -0,0 +1,226 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
|
||||
<system>
|
||||
<section id="weltpixel_layerednavigation" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="210"
|
||||
translate="label">
|
||||
<label>Layered Navigation</label>
|
||||
<tab>weltpixel</tab>
|
||||
<resource>WeltPixel_LayeredNavigation::LayeredNavigation</resource>
|
||||
|
||||
<group id="general" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label">
|
||||
<label>General Settings</label>
|
||||
<field id="enable" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label"
|
||||
type="select">
|
||||
<label>Enable Layered Navigation</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Enable/Disable WeltPixel Layered Navigation.</comment>
|
||||
</field>
|
||||
|
||||
<field id="ajax" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="30"
|
||||
translate="label" type="select">
|
||||
<label>Enable Ajax</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Enable/Disable Ajax Layered Navigation.</comment>
|
||||
<depends>
|
||||
<field id="enable">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="ajax_scroll_top" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="32"
|
||||
translate="label" type="select">
|
||||
<label>Scroll to top after Ajax load</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="sidebar" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="20" translate="label">
|
||||
<label>Sidebar Settings</label>
|
||||
<field id="style" translate="label" type="select" sortOrder="10" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Sidebar Style</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Default magento navigation enabled. <br/>
|
||||
<strong>“Slide-In Navigation & Slide-Down Navigation”</strong> only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
|
||||
</field>
|
||||
|
||||
<field id="display_multiselect_selected_options" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Display Multiselect Attributes Selected Options Counter</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
</field>
|
||||
|
||||
<field id="compare_block" translate="label comment" type="select" sortOrder="20" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Show Compare Products block</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Show/Hide Compare Products block from sidebar.</comment>
|
||||
<depends>
|
||||
<field id="sb_style">0</field>
|
||||
</depends>
|
||||
</field>
|
||||
|
||||
<field id="wishlist_block" translate="label comment" type="select" sortOrder="30" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Show Wish List block</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Show/Hide Wish List block from sidebar.</comment>
|
||||
</field>
|
||||
|
||||
<field id="recentlyordered_block" translate="label comment" type="select" sortOrder="35" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Show Recently Ordered block</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Show/Hide Recently Ordered block from sidebar.</comment>
|
||||
</field>
|
||||
|
||||
<field id="category_block" translate="label comment" type="select" sortOrder="40" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Show Category Filter</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>
|
||||
<![CDATA[Show/Hide Category Filter section from Layered Navigation sidebar.<br/>
|
||||
Applicable to Anchor categories. <br/>
|
||||
Also, if exists, make sure to set Stores > Configuration > Catalog > Catalog > Layered Navigation > Display Category Filter to Yes.
|
||||
]]>
|
||||
</comment>
|
||||
<depends>
|
||||
<field id="enable">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
|
||||
<field id="filter_button" translate="label" type="select" sortOrder="50" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Filter Button</label>
|
||||
<source_model>WeltPixel\LayeredNavigation\Model\Config\Source\FilterButton</source_model>
|
||||
<comment>Select the preferred style for the Layered Navigation filter button.</comment>
|
||||
</field>
|
||||
|
||||
<field id="price_filter" translate="label" type="select" sortOrder="60" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Price Filter</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Default magento navigation enabled. <br/>
|
||||
<strong>“Price Filter”</strong> only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
|
||||
</field>
|
||||
|
||||
<field id="price_filter_input" translate="label" type="select" sortOrder="70" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Show Price Filter With Input</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Default magento navigation enabled. <br/>
|
||||
<strong>“Show Price Filter With Input”</strong> only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
|
||||
</field>
|
||||
|
||||
<field id="auto_close" translate="label" type="select" sortOrder="80" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Auto Close Sidebar</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Default magento navigation enabled. <br/>
|
||||
<strong>“Auto Close Sidebar”</strong> only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
|
||||
</field>
|
||||
|
||||
<field id="rating_filter" translate="label" type="select" sortOrder="90" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Enable Rating Filter</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Default magento navigation enabled. <br/>
|
||||
<strong>“Rating Filter”</strong> only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
|
||||
</field>
|
||||
|
||||
<field id="rating_filter_option" translate="label" type="select" sortOrder="100" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Rating Filter Display Options</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Default magento navigation enabled. <br/>
|
||||
<strong>“Rating Filter Display Options”</strong> only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
|
||||
</field>
|
||||
|
||||
<field id="rating_filter_position" translate="label" type="select" sortOrder="110" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Rating Filter Position</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Default magento navigation enabled. <br/>
|
||||
<strong>“Rating Filter Position”</strong> only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
|
||||
</field>
|
||||
|
||||
<field id="rating_filter_ms" translate="label" type="select" sortOrder="120" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Rating Filter Multiselect</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Default magento navigation enabled. <br/>
|
||||
<strong>“Rating Filter Multiselect”</strong> only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
|
||||
</field>
|
||||
|
||||
<field id="rating_filter_counter" translate="label" type="select" sortOrder="130" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Show Rating Filter Counter</label>
|
||||
<frontend_model>WeltPixel\LayeredNavigation\Block\System\Config\Form\Field\Disable</frontend_model>
|
||||
<comment><![CDATA[Default magento navigation enabled. <br/>
|
||||
<strong>“Show Rating Filter Counter”</strong> only available in PRO version of this extension. <br>
|
||||
<a style="font-size: 14px" target="_blank" href="https://www.weltpixel.com/magento2-layered-navigation.html">Upgrade to Pro version</a> to enable this functionality.
|
||||
]]>
|
||||
</comment>
|
||||
|
||||
</field>
|
||||
|
||||
<comment>
|
||||
<![CDATA[<p>For more settings on attribute level, go to
|
||||
<strong>Stores -> Attributes -> Product -> [select desired attribute from grid] ->
|
||||
Storefront Properties -> WeltPixel Layered Navigation Properties</strong>
|
||||
section.
|
||||
</p>
|
||||
]]>
|
||||
</comment>
|
||||
|
||||
</group>
|
||||
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
|
||||
<default>
|
||||
<weltpixel_layerednavigation>
|
||||
<general>
|
||||
<enable>1</enable>
|
||||
<ajax>1</ajax>
|
||||
</general>
|
||||
<sidebar>
|
||||
<sb_style>0</sb_style>
|
||||
<category_block>1</category_block>
|
||||
<compare_block>1</compare_block>
|
||||
<wishlist_block>1</wishlist_block>
|
||||
<filter_button>1</filter_button>
|
||||
<recentlyordered_block>1</recentlyordered_block>
|
||||
</sidebar>
|
||||
<attribute_display>
|
||||
<filter>0</filter>
|
||||
<multiselect>1</multiselect>
|
||||
<qty>1</qty>
|
||||
<sort>position</sort>
|
||||
</attribute_display>
|
||||
</weltpixel_layerednavigation>
|
||||
</default>
|
||||
</config>
|
||||
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<virtualType name="categoryFilterList" type="Magento\Catalog\Model\Layer\FilterList">
|
||||
<arguments>
|
||||
<argument name="filters" xsi:type="array">
|
||||
<item name="attribute" xsi:type="string">WeltPixel\LayeredNavigation\Model\Layer\Filter\Attribute</item>
|
||||
<item name="price" xsi:type="string">WeltPixel\LayeredNavigation\Model\Layer\Filter\Price</item>
|
||||
<item name="category" xsi:type="string">WeltPixel\LayeredNavigation\Model\Layer\Filter\Category</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
<virtualType name="searchFilterList" type="Magento\Catalog\Model\Layer\FilterList">
|
||||
<arguments>
|
||||
<argument name="filters" xsi:type="array">
|
||||
<item name="attribute" xsi:type="string">WeltPixel\LayeredNavigation\Model\Layer\Filter\Attribute</item>
|
||||
<item name="price" xsi:type="string">WeltPixel\LayeredNavigation\Model\Layer\Filter\Price</item>
|
||||
<item name="category" xsi:type="string">WeltPixel\LayeredNavigation\Model\Layer\Filter\Category</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
<preference for="Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection"
|
||||
type="WeltPixel\LayeredNavigation\Model\ResourceModel\Fulltext\Collection" />
|
||||
<virtualType name="Magento\CatalogSearch\Model\ResourceModel\Fulltext\CollectionFactory"
|
||||
type="Magento\Catalog\Model\ResourceModel\Product\CollectionFactory">
|
||||
<arguments>
|
||||
<argument name="instanceName" xsi:type="string">WeltPixel\LayeredNavigation\Model\ResourceModel\Fulltext\Collection</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
<virtualType name="Magento\CatalogSearch\Model\ResourceModel\Fulltext\SearchCollection"
|
||||
type="WeltPixel\LayeredNavigation\Model\ResourceModel\Fulltext\Collection">
|
||||
<arguments>
|
||||
<argument name="searchRequestName" xsi:type="string">quick_search_container</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
|
||||
<!-- Since M-2.3.2 -->
|
||||
<type name="Magento\Catalog\Model\Layer\Search">
|
||||
<arguments>
|
||||
<argument name="context" xsi:type="object">Magento\CatalogSearch\Model\Layer\Search\Context</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<type name="Magento\Catalog\Model\Layer\Category">
|
||||
<arguments>
|
||||
<argument name="context" xsi:type="object">Magento\CatalogSearch\Model\Layer\Category\Context</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<!-- End since -->
|
||||
</config>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
|
||||
<virtualType name="WeltPixel\LayeredNavigation\Block\Navigation\Category"
|
||||
type="WeltPixel\LayeredNavigation\Block\Navigation">
|
||||
<arguments>
|
||||
<argument name="filterList" xsi:type="object">categoryFilterList</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
|
||||
<virtualType name="WeltPixel\LayeredNavigation\Block\Navigation\Search"
|
||||
type="WeltPixel\LayeredNavigation\Block\Navigation">
|
||||
<arguments>
|
||||
<argument name="filterList" xsi:type="object">searchFilterList</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
|
||||
<!-- @api -->
|
||||
<virtualType name="Magento\LayeredNavigationStaging\Block\Navigation\Category"
|
||||
type="WeltPixel\LayeredNavigation\Block\Navigation">
|
||||
<arguments>
|
||||
<argument name="filterList" xsi:type="object">categoryFilterList</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
<!-- @api -->
|
||||
<virtualType name="Magento\LayeredNavigationStaging\Block\Navigation\Search"
|
||||
type="WeltPixel\LayeredNavigation\Block\Navigation">
|
||||
<arguments>
|
||||
<argument name="filterList" xsi:type="object">searchFilterList</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
|
||||
<preference for="Magento\LayeredNavigation\Block\Navigation\Category"
|
||||
type="WeltPixel\LayeredNavigation\Block\Navigation\Category"/>
|
||||
|
||||
<preference for="Magento\LayeredNavigation\Block\Navigation\FilterRenderer"
|
||||
type="WeltPixel\LayeredNavigation\Block\Navigation\FilterRenderer"/>
|
||||
|
||||
<preference for="Magento\LayeredNavigation\Block\Navigation\State"
|
||||
type="WeltPixel\LayeredNavigation\Block\Navigation\State"/>
|
||||
|
||||
<preference for="Magento\Swatches\Block\LayeredNavigation\RenderLayered"
|
||||
type="WeltPixel\LayeredNavigation\Block\LayeredNavigation\RenderLayered"/>
|
||||
|
||||
<preference for="Magento\Catalog\Model\ResourceModel\Layer\Filter\Attribute"
|
||||
type="WeltPixel\LayeredNavigation\Model\ResourceModel\Layer\Filter\Attribute"/>
|
||||
|
||||
<type name="Amasty\ShopbyBrand\Controller\Index\Index">
|
||||
<plugin name="WeltPixel_LayeredNavigation_Ajax_Amasty_ShopBy"
|
||||
type="WeltPixel\LayeredNavigation\Plugin\Category\View"></plugin>
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Controller\Category\View">
|
||||
<plugin name="WeltPixel_LayeredNavigation_Ajax_Category_View"
|
||||
type="WeltPixel\LayeredNavigation\Plugin\Category\View"></plugin>
|
||||
</type>
|
||||
|
||||
<type name="Magento\CatalogSearch\Controller\Result\Index">
|
||||
<plugin name="WeltPixel_LayeredNavigation_Ajax_CategorSearch_Result"
|
||||
type="WeltPixel\LayeredNavigation\Plugin\CatalogSearch\ResultView"></plugin>
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Model\Layer\FilterList">
|
||||
<plugin name="WeltPixel_LayeredNavigation_Filter_List"
|
||||
type="WeltPixel\LayeredNavigation\Plugin\Layer\FilterList"></plugin>
|
||||
</type>
|
||||
|
||||
<type name="Magento\Catalog\Model\Layer\Filter\Item">
|
||||
<plugin name="WeltPixel_LayeredNavigation_Item_Url"
|
||||
type="WeltPixel\LayeredNavigation\Plugin\Model\Layer\Filter\Item" sortOrder="1"/>
|
||||
</type>
|
||||
|
||||
<type name="Magento\Swatches\Block\LayeredNavigation\RenderLayered">
|
||||
<plugin name="WeltPixel_LayeredNavigation_Swatches_RenderLayered"
|
||||
type="WeltPixel\LayeredNavigation\Plugin\Swatches\RenderLayered" sortOrder="1"/>
|
||||
</type>
|
||||
|
||||
</config>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
<event name="layout_generate_blocks_after">
|
||||
<observer name="remove_block" instance="WeltPixel\LayeredNavigation\Observer\RemoveBlocks"/>
|
||||
</event>
|
||||
</config>
|
||||
@@ -0,0 +1 @@
|
||||
aULixHiC2+4o5CHvwRTwSYVM4snpseXqr2zV3R7dSfxMxsDjERk9Fyxy/F2V/+61M94keXaQjkLwZGQHImK8RQ07SE9iLufSpsFwuvLL8GFPzFrTMhinO0oR6n9CN7lkWFw8925JzpTsg+NvnTjVuKeJr/kPA/V06Vp+TtWSu2/P7pYclhS22wn4eBBYambiACOEHb+gN2WQJH+X5VWvcQ==
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @category WeltPixel
|
||||
* @package WeltPixel_LayeredNavigation
|
||||
* @copyright Copyright (c) 2018 Weltpixel
|
||||
* @author Weltpixel TEAM
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="WeltPixel_LayeredNavigation">
|
||||
<sequence>
|
||||
<module name="WeltPixel_Backend"/>
|
||||
</sequence>
|
||||
</module>
|
||||
</config>
|
||||
Reference in New Issue
Block a user