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

Return more than 12 similar products #706

Closed
pedrobernardina opened this issue Aug 9, 2023 · 1 comment
Closed

Return more than 12 similar products #706

pedrobernardina opened this issue Aug 9, 2023 · 1 comment

Comments

@pedrobernardina
Copy link

What problem are you trying to solve?.

We'd like to be able to return more than 12 similar products. Currently there's a hardcoded param on the method crossSelling on search client that would be better being parameterized.

In the Fashion segment it's common to have different product colours as different (similar) products instead of SKUs due to the limited number of SKUs we can have on the platform. There's a limitation in the current implementation that caps the number of similar products to 12, forcing us to make extra API calls.

Describe the solution you'd like
Parameterize the groupByProduct variable.

Why do you think this feature should be available to all stores?
Because this is a common situation in fashion, and we believe stores should be able to fetch all similar products if they need to. Also, the fewer the API calls the better.

Describe alternatives you've considered
We've used a node service to make a REST API call to return all similar products. We've also deployed our own customized search-resolver instance.

Additional context
We've opened 2 MRs that implement this feature.

vtex-apps/search-graphql#128
vtex-apps/search-resolver#460

@mihainutiu-vtex
Copy link

Hi @pedrobernardina
The team merged these PRs that should solve this issue:

#282
#135
#467

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants