Open
Description
Preconditions (*)
- Magento 2.4.3
- in general this issue appear in all Magento 2.4.x
Steps to reproduce (*)
- install Fresh Magento 2.4.3
- Create new Category (Ex: 'All Products')
- Create 20 simple products (with any data), I used import products and I used this naming ('simpel-01','simple-02','simple-03',etc.)
- open the Category page (All Products), {base_url}/all-products.html
- sort products by name, so we can see the list of products like ('simpel-01','simple-02','simple-03',etc..)
- use this event to filter the product list 'catalog_block_product_list_collection', I used this filter [$collection->addAttributeToFilter("sku",'simple-27');]
- go to the category page and refresh the page, you will have this message 'We can't find products matching the selection.'
- add this paratmer to the page {base_url}/all-products.html?p=2, you will see your filtered products
Expected result (*)
- I expect to do the filter before Magento set the pagination and the product should appear in the first page
Actual result (*)
- you have message that you do not have the filtered product but the product is exist in the next pages
2.it looks like the filter happened only in the current page of products
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- this issue affect the whole logic of product visibility and make the event is useless, and it prevent any kind of filtration for the product list
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchIssue related to Developer Experience and needs help with Triage to Confirm or Reject it