Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VendorModuleControllerResultIndex.php //For CatalogSearch
- VendorModuleControllerCategoryView.php //For Catalog
- <?xml version="1.0"?>
- <referenceBlock name="catalogsearch.leftnav">
- <action method="setTemplate">
- <argument name="template" xsi:type="string">Vendor_Module::layer/view.phtml</argument>
- </action>
- </referenceBlock>
- <?xml version="1.0"?>
- <referenceBlock name="product_list_toolbar">
- <action method="setTemplate">
- <argument name="template" xsi:type="string">Vendor_Module::product/list/toolbar.phtml</argument>
- </action>
- </referenceBlock>
- <?xml version="1.0"?>
- <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
- <router id="standard">
- <route id="catalogsearch" frontName="catalogsearch">
- <module name="Vendor_Module"/>
- </route>
- </router>
- </config>
- <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
- <module name="Example_Module" setup_version="2.0.0" >
- <sequence>
- <module name="Magento_Catalog"/>
- <module name="Magento_CatalogSearch"/>
- </sequence>
- </module>
- </config>
Add Comment
Please, Sign In to add comment