2

I am developing module "Shop By Brand". So on the Brand details page it's displaying Brand details with Product Collection related to brand. All things are working except "Layered" navigation.

I have added "Layered Navigation" by XML file.

<referenceContainer name="sidebar.main">
    <block class="Magento\LayeredNavigation\Block\Navigation\Category" name="catalog.leftnav" before="-" template="layer/view.phtml">
        <block class="Magento\LayeredNavigation\Block\Navigation\State" name="catalog.navigation.state" as="state" />
        <block class="Magento\LayeredNavigation\Block\Navigation\FilterRenderer" name="catalog.navigation.renderer" as="renderer" template="layer/filter.phtml"/>
    </block>
</referenceContainer>

Layered Navigation is displaying there with all the filterable options but not working properly. It's displaying filters according to "Default Category", not according to current brand.

Please provide some solution or help.

  • 1
    Did you figured it out? I'm looking for solution too – Fred Orosko Dias May 7 '18 at 20:34
  • Any solution fo this? @FredOroskoDias – Yasar Arafath Dec 18 '18 at 6:22

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.