Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
"Shop By" button disabling broken on the search page #13445
The "Shop By" button becomes disabled once any additional filters are pointless (they would yield the same one product or no products at all). It works like that on category pages (e.g. "women/tops-women/jackets-women.html"), but it's broken on the search page.
The technical cause is the disabling overlay being positioned below the search results / products on the search page, which is way off the button which is positioned above the search results.
In category pages, the overlay (along with the filtering details) is positioned above the search results.
Steps to reproduce
Hi, i've analyzed the code in the catalogsearch and in the catalog-category page after adding filters.
I've noticed that in the catalogsearch page is missing the class "page-with-filter" in the body when a filter is added.
I've tried to add manually this class in the code inspector, after i've selected a filter, and if this class is present the code will work correctly, the state filter is displayed immediately after the "shop by" button, and the "shop by" button will be disabled.
So, i think the solution is adding the class "page-with-filter" in the body of the catalogsearch page when a filter is selected, like in the catalog-category page.
I've added the class in the catalogsearch_result_index.xml and seems to work.
Can i send you this modification?