Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual category root subtree still showing in layered nav when category no longer virtual #2987

Closed
rbayet opened this issue Jun 28, 2023 · 0 comments
Assignees
Labels

Comments

@rbayet
Copy link
Collaborator

rbayet commented Jun 28, 2023

When changing back to a standard category a previously virtual category with "generate root category subtree = true", the layered navigation still shows a category filter based on the root category that was configured.
This leads to 404 error pages.

Preconditions

Magento Version : 2.4.5-p2

ElasticSuite Version : 2.10.x

Environment : N/A

Third party modules : N/A

Steps to reproduce

  1. On a Luma, create a virtual category with rules "In Any .... True [ [ category is "Men / Tops" ], [ category is "Gear] ]" and check "Generate Virtual Category Root Subtree" to true
  2. Check that on frontend, the category filter is showing the "Gear" category
  3. In backend, switch back the category to non-virtual, and manually add products, bag products, for instance
  4. Go back in frontend and reload the category page

Expected result

  1. The category filter is not showing

Actual result

  1. The category filter is still showing with the "Gear" item
  2. When clicking on "Gear", it leads to a 404 page
@rbayet rbayet added the bug label Jun 28, 2023
rbayet added a commit to rbayet/elasticsuite that referenced this issue Jun 28, 2023
rbayet added a commit to rbayet/elasticsuite that referenced this issue Jun 28, 2023
@rbayet rbayet self-assigned this Jun 28, 2023
romainruaud added a commit that referenced this issue Jul 3, 2023
…btree

Fixes #2987 Check if category is virtual when evaluating useVirtualCa…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant