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:
FoodProduct.cs
[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; }
[BackingType(typeof(PropertyDictionarySingle))]
[Display(GroupName = "ERP", Name = "Dictionary Single", Order = 3, ShortName = "Product Status")]
public virtual string DictionarySingle { get; set; }
FoodProductStatusBlock.cs
[ContentType(GUID = "4d9c3bd2-8998-4507-99f7-d1f9814900a6", AvailableInEditMode = false)]
public class FoodProductStatusBlock : BlockData
{
[BackingType(typeof(PropertyDictionarySingle))]
[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; }
}
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:
FoodProduct.cs
FoodProductStatusBlock.cs
Thanks in advance