PrestaShop / hummingbird

77 stars 73 forks source link

In the Search results page, it is missing the search bar when there's no result #578

Open florine2623 opened 7 months ago

florine2623 commented 7 months ago

After I search for a product that does not exist, the results page is empty, it is missing a search bar in the content of the Search results page like we had in classic theme.

Hummingbird theme:

Screenshot 2024-01-24 at 17 38 14

Classic theme:

Screenshot 2024-01-24 at 17 38 07
tblivet commented 3 months ago

Hello @florine2623, @nicosomb 👋

It seems that the search bar was intentionally left out.

Indeed, the module that displays this search bar relies on the ID search_widget to work properly. If this ID is used multiple times on the page, the module will not work correctly. For example, the "secondary" search bar will not display a "submenu with products" if it finds products. Additionally, in responsive mode (on small devices), the theme moves the search_widget element, which causes bugs and makes the search bar completely unusable.

So, I deduce that the search bar was clearly intentionally removed from this page. I think we can consider this issue as closed. What do you think?