Set desired default sorting on search page result
Hey Shopware Team,
we noticed an issue with the Default Sorting feature in Shopware Backend. We had several tickets where merchants reported that they’re having issues with setting the desired default sorting on search page result.
This issue is present from Shopware 6.4.* up to Shopware 6.6.
It has already been confirmed that this issue is related to the Shopware Core. This can be confirmed by deactivating our plugin (Nosto or Findologic).
Part of the core from which sorting flags are generated is located in criteria.php file, which are later used to execute sorting.
Issue description:
Whenever we choose a certain Default sorting option in Shopware Backend, it should apply for both Category page and Search Results page. However, chosen Default sorting is only applied to the Category page.
Steps to reproduce:
1. Go to Shopware Settings→ Products→ Default Sorting
2. Change to any other option from the preselected one (e.g., Price Ascending)
3. Go to the Storefront and submit search
4. On the search results page, compare the selected sorting with the chosen one in Shopware settings
5. Next, go to any category with products
6. On the category page, compare the selected sorting with the chosen one in Shopware settings
Expected result:
Products are sorted by ascending price on both search results and category page.
Actual result:
Products are sorted by ascending price on category page, but on search results page, the chosen default sorting is not applied.
As I mentioned, there seems to be a different logic for applying sorting on search results page and category page.
Our proposal for this issue:
By setting the default sorting in Shopware settings, both category page and search results page are affected and have the same type of sorting or,
Separating default sorting feature – one for category page and the other for search results page.
Note:
Plugins we are using:
Nosto: https://store.shopware.com/en/nosto31536044090f/nosto-personalization-for-shopware-6.html
Findologic: https://store.shopware.com/de/fin6494960032131f/findologic-onsite-suche-product-discovery-platform.html
From our point of view you'd need to adapt your "Default Search Sort" setting as it is configurable within the SW-Backend but never used because within the code they have it set to score/Top Results.
Could you please tell me how we could best move forward here as we have customers complaining about it? Thanks for your help!
-
Bianca Glasner commented
Do you have any update for us?
Thanks in advance