Developer forum

Forum » Development » Default index sorting not working for product viewmodel

Default index sorting not working for product viewmodel

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

After switching the product catalog to viewmodel the default sorting is not working anymore. I see a couple of issues:

  1. 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
  2. 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.
  3. 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


Replies

 
Morten Buhl Dynamicweb Employee
Morten Buhl
Reply

Hi Anders

Thanks for the bug report. Registered as 76919. Fix will be in an upcoming hotfix

/Morten Buhl, DW

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Morten,

 

That sounds great. Please also look into the same issues regarding the QueryPublisher.

 

Best regards, Anders

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Morten,

 

When do you expect this to be fixed?

 
Nicolai Pedersen
Reply

Hi Anders

You can always see status and plan on this page: https://doc.dynamicweb.com/downloads/releases/bug-fixes/known-bugs

It has been fixed and is now in testing and will be out in the next Ecommerce package.

BR Nicolai

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

Yes, thank you :-) But often our clients are asking for a deadline and not a release version, which do not have a deadline :-)

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

Has this been released yet? As it says on the plan that it will be released in 9.9.0...

 
Morten Buhl Dynamicweb Employee
Morten Buhl
Reply
This post has been marked as an answer

Hi Anders

The fix is in the latest Ecommerce package available from nuget.org. It will also be included in the 9.8.3 release coming either later today or tomorrow

/Morten Buhl. DW

Votes for this answer: 1
 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Morten,

 

Thank you so much! Have you also fixed the same bug in the Query Publisher? :-)

 
Morten Buhl Dynamicweb Employee
Morten Buhl
Reply

Hi Anders

The fix is in the ecommerce code itself, so it should work for any app that uses it (so yes - it's also fixed for QP)

/Morten

 

You must be logged in to post in the forum