Developer forum

Forum » Swift » New way of showing product specifications problem

New way of showing product specifications problem

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi, 

During an update to the latest swift (main branch on GitHub) I noticed Swift_ProductDetailsSpecification is gone, so I'm trying to use the new Swift_ProductFieldDisplayGroups.cshtml. I have managed to set it up and I can select my display groups. I have selected the table as a layout. Unfortunately nothing is shows, I have found the cause to be that Line 23 in Swift_ProductFieldDisplayGroups,cshtml

var displayGroups = product.GetProductDisplayGroupFieldsByGroupSystemNames(selectedDisplayGroupSystemName, hideFieldsWithZeroValue);

Returns no display groups, eventough I'm sure the group is there (otherwise I could also not select it in the settings I guess?)

I added a <span> to count the groups returned which is 0

I'm on DW10.0.19


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Justin

Yes - I think we know what that is - breaking change in how that checkbox list is saved. The GetRawValueString() expects the values like "12, 123" but in fact a json value is returned "{id:12,id:123}" or something like that. We haved fixed this on 10 - but it is awaiting test and release....

 

You must be logged in to post in the forum