After updating to Magento 2.4.5 product category pages no longer show products. However, the filters on the left side of the page indicate that products should be visible for instance:
I’ve tried the following to fix the issue to no avail:
- Disabled all custom plugins
- Reverted to the default Luna theme
- Reindex
- Clear cache
- Restarted Elasticsearch
2
Answers
After a long search I was able to find this issue and work-around for this problem. It seems to be an issue around the catalog option to display all products.
Workaround option #1:
Override
limiter.phtml
in your theme:app/design/frontend/Your/Theme/Magento_Catalog/templates/product/list/toolbar/limiter.phtml
After doing so be sure to run:
php bin/magento setup:di:compile
Workaround option #2:
Turn off
Allow All Products per Page
by going toStores > Settings > Configuration > Catalog > Catalog
Set
Allow All Products per Page
to NoAfter doing so be sure to run:
https://github.com/magento/magento2/issues/35900#issuecomment-1210181110
This should fix the issue: https://github.com/magento/magento2/commit/bb55549cd3016987663272e7ffe3f452c8d6e40d
You can create a patch for it.
vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/limiter.phtml