I've overridden the Layer.php file using the plugin, to show product based on Multi-source location.

But now I have the wrong number of elements in the toolbar (I have 4 products displayed but still showing 7 number in the toolbar also the per page items is 4 by default but it's showing only 2).

I've added condition in aroundgetProductCollection function.

    $collection->addAttributeToFilter('entity_id', ['in' => $productid]);

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.