Developer forum

Forum » Ecommerce - Standard features » GlobalSettings CalcProductCountForGroup element not renaming itself

GlobalSettings CalcProductCountForGroup element not renaming itself

Arnór Halldórsson
Arnór Halldórsson
Reply

Hola amigos,

I noticed when upgrading some clients from sub 9.7 versions to 9.8.10 that the GlobalSettings element /Globalsettings/Ecom/Navigation/CalcProductCount doesn't get renamed to it's newer version /Globalsettings/Ecom/Navigation/CalculateProductCountForGroup causing the ProductCount property on Groups to return 0.

I changed it manually in the GlobalSettings file for those solutions so It's not a world breaking issue, I just wanted to let you know.

Best regards,
Arnór Geir


Replies

 
Nicolai Pedersen
Reply

Hi Arnor

It is actually on purpose and you can see the change on the 9.7 list of changes: https://doc.dynamicweb.com/downloads/releases/release-notes/dw-9-7-release-notes

The reason is that it used to be default setting and it causes a huge performance loss when rendering the frontend navigation, so we decided to disable it on all solutions and then you have to enable it again if needed. Most solutions do not need it and the rest should not use it, and only if there are few products on the solution. 

BR Nicolai

 
Arnór Halldórsson
Arnór Halldórsson
Reply

Hi Nicolai,

In that case it makes sense :) Though the element wasn't set to false, it was still set to true, but the name of the element itself hadn't updated, yielding the same result though as if it were set to false.

But there are still various other Product count properties on the Group object like ProductCountForBackendTree and ProductsByLanguageWithOutVariantsCount... Don't they cause the same performance issues? From what I can see, ProductCount simply returns ProductsByLanguageWithOutVariantsCount (see image).

Best regards,
Arnór

ProductCountReturnValue.png

 

You must be logged in to post in the forum