-
Notifications
You must be signed in to change notification settings - Fork 80
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
category_uid does not filter the product list #964
Comments
This is behaviour works as designed. For product listing we consider the following two cases:
For product search the category context is not given by the url usually (meaning no category identifier is encoded in the url). In this case we do not remove the category aggregations from the search result set which allows the user to filter using the category facet. This facet is using the category_id only afaik
For product lists on a product list page the category context is given by the url (meaning the url contains the url_path or url_key of the category). In this case the category id aggregation is limited to the direct children of the current category for facet navigation. This is the case because we don't want to filter, but navigate to the actual child categories plp to leverage caching (which would not be the case when using a |
Hello,
|
Expected Behaviour
products are filtered based on category uid in the query param
Actual Behaviour
All the products are shown in PLP page even though we have query parameter category_uid= category_uid=NA==
Reproduce Scenario (including but not limited to)
Create a page using CIF examples PLP component
In the same page add query param category_uid = categoryid=NA== or Nw== depends on category
the products on PLP are not filtered
it works fine for category id
https://www.aemcomponents.dev/content/core-components-examples/library/commerce/search.html?category_id=3&search_query=test
Steps to Reproduce
Create a page using CIF examples PLP component
In the same page add query param category_uid = categoryid=NA== or Nw== depends on category
the products on PLP are not filtered
Platform and Version
AEM6.5.12 and CIF 2.11.0
Sample Code that illustrates the problem
Logs taken while reproducing problem
NA
The text was updated successfully, but these errors were encountered: