Dear Dynamicweb,
After switching the product catalog to viewmodel the default sorting is not working anymore. I see a couple of issues:
- The module settings is saved in the database like this: "<QuerySortByParams>null</QuerySortByParams>", which means the value is handled as a string: https://www.screencast.com/t/66rgFcxH and now this is not working: https://www.screencast.com/t/5slSMxVe0T2s
- I do not get this condition: https://www.screencast.com/t/56CxkDPIFm - why should the result not be set if "isDefault" is true? So now the result is just empty if the value of settings.IndexQuerySortByParams is null or empty.
- When trying to set "Sort By" values on the product catalog viewmodel module in the administration the order seems to be randomized when adding new values
Please look into this so we can finish our implementation.
Best regards, Anders