I have a form that i’m using to load a custom collection.
That collection is properly printed on my page. But the swatches / filter are not linked to my custom collection they act like is they were taking all products.
I guess this is due to the fact i’m outside of any category as it’s a custom page…but i would like to know how to link the swatches filter with my custom collection.
I founded an other magento stack talking about this issue : Use product list template with my own product collection?
Even considering this one got solved…the issue I have is unfix yet as mentionned in the last answer comment :
if you put this block it shows the navigation layer, yes, but it’s not related with the custom product collection shown. Do you know how to do it properly? –
@ElTête Feb 3, 2022 at 9:50
<block class="MagentoLayeredNavigationBlockNavigationCategory" name="catalog.leftnav" before="-" template="Magento_LayeredNavigation::layer/view.phtml">
<block class="MagentoLayeredNavigationBlockNavigationState" name="catalog.navigation.state" as="state" />
<block class="MagentoLayeredNavigationBlockNavigationFilterRenderer" name="catalog.navigation.renderer" as="renderer" template="Magento_LayeredNavigation::layer/filter.phtml"/>