I want to override layered navigation template in my module(layer/view.phtml).

I created catalog_category_view_type_layered.xml file in Companyname/Modulename/view/frontend/layout/


<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <referenceBlock name="catalog.leftnav">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">Companyname_Modulename::view.phtml</argument>
        <referenceBlock name="category.products">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">Companyname_Modulename::products.phtml</argument>

Above file works proper in community edition but not working in enterprise edition.

  • I think there is a problem with set template, move your phtml into "layer/view.phtml". – Chirag Patel Jun 26 '18 at 9:01
  • If your file is already there then set "<argument name="template" xsi:type="string">Companyname_Modulename::layer/view.phtml</argument>" – Chirag Patel Jun 26 '18 at 9:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.