adobe / adobe/aem-core-cif-components

category_uid does not filter the product list

Open
#964 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
109
Forks
78
Avg merge
4d 18h
Merged PRs (30d)
4

Description

### 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

image

#### Logs taken while reproducing problem

NA

Contributor guide

Open the contributing guide

Research direction

Start with the CIF examples PLP component and reproduce the issue using the category_uid query parameter on the search example page. Compare its behavior with the working category_id parameter and verify that the product list is filtered for category_uid values such as NA== or Nw==. Done means the PLP shows only products from the requested category.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.