Replies: 2 comments
-
Hello @giannello, It is a legacy design decision to ease the way the category layer navigation filter and the category related rule engine works. But all is not lost if you want somehow to hide (a bit) a given category :
If you really need to also hide the category in the layered navigation, you could rewrite the category layered navigation filter by making it skip children categories of the current category flagged with a custom category attribute (or is_anchor = false), see elasticsuite/src/module-elasticsuite-catalog/Model/Layer/Filter/Category.php Lines 144 to 155 in 1a42d60 And if you do not want to create a custom category attribute, you can make is_anchor available again in the admin category edit form by redeclaring the field But we have never tried this and you will be a bit on your own ;) Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @rbayet, and thanks for the detailed explanation. I tried re-enabling that field on my local environment (directly by changing the attribute visibility in the database) but ultimately abandoned the solution due to the potential of breakages. As it's possible to hide categories in the navigation menu, and our shop doesn't allow for a global product listing, as we always start with a sub-category, it sounds like it might be worth creating those hidden categories as top-level categories, or as sub-categories of a non-visible first-level category, to prevent leaking into the layered navigation. Will give it a spin |
Beta Was this translation helpful? Give feedback.
-
Hello there!
According to the Magento 2 documentation, it's possible to create a "hidden" category, that is not shown anywhere, but can be linked and used if wanted.
When using elasticsuite, this option is not present anymore (because of this).
Why does elasticsuite disable this magento feature, and how can I achieve the same result if that option is not available anymore?
Beta Was this translation helpful? Give feedback.
All reactions