volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Generic Property

I've created one generic property like this 

  [Display(Name = "Default Products", Description = "Products to put first in the list", GroupName = "Club Package Details", Order = 50)]
        [EditorDescriptor(EditorDescriptorType = typeof(CollectionEditorDescriptor<ProductItemData>))]
        public virtual IList<ProductItemData> DefaultProductList { get; set; } 

 public class ProductItemData
    {
        [Required]
        [Display(Name = "Product Variant", Order = 100)]
        [AllowedTypes(typeof(VariationContent))]
        [UIHint(EPiServer.Commerce.UIHint.CatalogContent)]
        public virtual ContentReference ProductVariantSelection { get; set; }

        [Required]
        [Display(Name = "Min Quantity", Order = 200)]
        public virtual int MinimumQuantity { get; set; }

        [Required]
        [Display(Name = "Max Quantity", Order = 300)]
        public virtual int MaximumQuantity { get; set; }

    }

    [PropertyDefinitionTypePlugIn]
    public class ProductItemDataPropertyList : PropertyList<ProductItemData>
    {
    }

so in CMS, it's showing ID_catalogCommerce so it's very confusing Do we have any way we can show sku/Name ?

#287384
Sep 14, 2022 15:22

I believe you would have to create a new CollectionEditorDescriptor to handle your type. Here is a start 

CollectionEditorDescriptor - How to display a list of complex typ (optimizely.com)

#287446
Sep 15, 2022 14:12
* 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.