layered navigation is not working with custom Collection filters in Magento 2.4
File Name – MagentoCatalogModelLayerCategoryCollectionFilter;
$collection->addAttributeToSelect($this->catalogConfig->getProductAttributes())
->addMinimalPrice()
->addFinalPrice()
->addTaxPercents()
->addUrlRewrite($category->getId())
->setVisibility($this->productVisibility->getVisibleInCatalogIds());
$collection->getSelect()
->join(
('marketplace_assignproduct_items'),
'e.entity_id= marketplace_assignproduct_items.assign_product_id',
('marketplace_assignproduct_items.seller_id')
);
With help of this, I am able to display products properly in Category Page but layered navigation and Pagination not working properly.
Note – this issue with Magento 2.4