magento / pwa-studio

šŸ› Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 682 forks source link

[bug]: Search products by category from searchBar doesn't work #4223

Closed joseamietta closed 5 months ago

joseamietta commented 8 months ago

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:

  1. Open top SearchBar
  2. Type 'shirt'
  3. Click on 'shirt on Top'
  4. The search.html page show No results found!
  5. 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

image Screenshot from 2023-12-22 11-47-34 Screenshot from 2023-12-22 11-48-00

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:

Please let us know what packages this bug is in regards to:

m2-assistant[bot] commented 8 months ago

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.

joseamietta commented 8 months ago

@magento I am working on this

m2-assistant[bot] commented 8 months ago

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.

joseamietta commented 8 months ago

@magento add to contributors team

m2-assistant[bot] commented 8 months ago

Hi @joseamietta! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and add your comment one more time.

joseamietta commented 8 months ago

@magento I am working on this

RaghavendraTirumalasetti commented 8 months ago

@magento I am working on this

m2-assistant[bot] commented 8 months ago

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.

RaghavendraTirumalasetti commented 8 months ago

Issue is reproducible with the steps Mentioned. Hence Conforming the issue.

glo82145 commented 6 months ago

@adobe export issue to JIRA project PWA as Bug

github-jira-sync-bot commented 6 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3237 is successfully created for this GitHub issue.