Try our conversational search powered by Generative AI!

Dictionary property (PropertyDictionarySingle) not rendered correctly if located in a BlockData class - Commerce 12.11.1


Hi, in order to organize my product information not only I'm creating tabs but also creating sections under each tab. The way I'm creating these sections is based on the field "SeoInformation" thus creating a new BlockData class (screenshot and code below)

For some reason, dictionaries properties are not rendered correctly if the property is located in a BlockData class (I'm using a PropertyDictionarySingle data type). For test purpose I created a property under my product class  (DictionarySingle property in the code below) and there it works as expected.

Is there a workaround for this issue?

I'm using Commerce 12.11.1

and here's the partial code used in this screenshot: 


[Display(GroupName = "ERP", Name = "Category Information", Order = 1)]
public virtual FoodProductCategoryInformationBlock CategoryInformation { get; set; }

[Display(GroupName = "ERP", Name = "Product Status", Order = 2)]
public virtual FoodProductStatusBlock ProductStatus { get; set; }

[Display(GroupName = "ERP", Name = "Dictionary Single", Order = 3, ShortName = "Product Status")]
public virtual string DictionarySingle { get; set; }


[ContentType(GUID = "4d9c3bd2-8998-4507-99f7-d1f9814900a6", AvailableInEditMode = false)]
public class FoodProductStatusBlock : BlockData
    [Display(Name = "ERP Last modification type", Order = 1)]
    public virtual string ErpLastModificationType { get; set; }

    [Display(Name = "ERP Last modification date", Order = 2)]
    public virtual DateTime ErpLastModificationDate { get;set;}

    [Display(Name = "ERP SKU Activation Date", Order = 3)]
    public virtual DateTime ErpSkuActivationDate { get; set; }

    [Display(Name = "ERP SKU Deactivation Date", Order = 4)]
    public virtual DateTime ErpSkuInactiveDate { get; set; }

Thanks in advance

Nov 20, 2018 21:07


This is not supported. We looked into it and it is not simple to fix, so it's something we have to live with for now

Nov 20, 2018 22:02

yeah, I kind of suspected it's not an easy fix. Thanks for the quick response! 

Nov 20, 2018 22:04
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.