Open leonhelmus opened 2 years ago
Hi @leonhelmus. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Might be also related to my testing today: https://github.com/magento/magento2/issues/36055
Ah, I just disabled that Plugin.
They need to rewrite that to check for:
Currently it just checks the Category page, so on Search Page it uses "Default Category" and outputs the whole catalog.
When you filter by attributes, it does not decrease the number because the only lookup that is done is for Category. It does not check if filters were applied to the category.
Disable the plugin only works with enabled MSI. I've removed all MSI Modules from my projects. So the fix doesn't work for me
Amasty's QA has also reproduced this issue on 2.4.5-p1 via MFTF for Improved Layered Navigation.
For now, the best solutions:
Suggested fix $items = $subject->getCollection()->getItems();
is not working:
After upgrading to php 8.1 + M2.4.5 i get the following issue:
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
This patch that i created resolved the issue for me:
The reason why i think it's going wrong is that this plugin does not take into account that filters are used on a category page. What do you think magento?