pwa-studio
pwa-studio copied to clipboard
[bug]: Search products by category from searchBar doesn't work
Describe the bug
Search products by category from searchBar doesn't work https://venia.magento.com/search.html?query=shirt&category_id%5Bfilter%5D=Tops%2CMTg%3D&page=1
The attribute category_id is deprecated, should replace by category_uid
To reproduce
Steps to reproduce the behavior:
- Open top SearchBar
- Type 'shirt'
- Click on 'shirt on Top'
- The search.html page show No results found!
- if replace category_id with category_uid from URL, It's works and sidebar category filter was actived
Expected behavior
Able to search products by category from searchBar
Screenshots
Possible solutions
in file node_modules/@magento/peregrine/lib/talons/SearchBar/useSuggestedCategory.js, line 12 replace category_id[filter] by category_uid[filter]
Please complete the following device information:
- Device [e.g. Lenovo Thinkpad, Notebook, Ubuntu 22.04]:
- Browser [e.g. Chrome]:
- Browser Version [e.g. 120.0.6099.109]:
- Magento Version [e.g Adobe Commerce 2.4.6-p3]:
Please let us know what packages this bug is in regards to:
- [ ]
venia-concept
- [ ]
venia-ui
- [ ]
pwa-buildpack
- [x]
peregrine
- [ ]
pwa-devdocs
- [ ]
upward-js
- [ ]
upward-spec
- [ ]
create-pwa
Hi @joseamietta. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
@magento I am working on this
Hi @joseamietta! :wave:
Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team
command to join Contributors team.
@magento add to contributors team
Hi @joseamietta! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and add your comment one more time.
@magento I am working on this
@magento I am working on this
Hi @RaghavendraTirumalasetti! :wave:
Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team
command to join Contributors team.
Issue is reproducible with the steps Mentioned. Hence Conforming the issue.
@adobe export issue to JIRA project PWA as Bug
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3237 is successfully created for this GitHub issue.