Try our conversational search powered by Generative AI!

IList of Products and Product Variants not working as expected


Hi guys,

We currently have a simple IList property of content references with an attribute to use the commerce catalogue as the root. 

            Name = "Product Area",
            Description = "The products to be displayed in the block.",
            GroupName = SystemTabNames.Content,
            Order = 20)]
        [AllowedTypes(typeof(SupplierProduct), typeof(SupplierProductVariant))]
        public virtual IList ProductArea { get; set; }

We're having a couple of issues with this however.

  1. All product variants that are displayed underneath products in a specific category are also duplicated at the end of the products in that given category.
  2. When attempting to select the product variant that is underneath the product node, it automatically selects the product variant that is displayed alongside the products node, however the functionality still works as expected when adding the variant.

Any help would be most appreciated!

Edited, Mar 20, 2018 13:52

A few screenshots would definitely help to understand the problem here, @David 

Mar 26, 2018 16:46

Hi @Quan,

As you can see from the image, when selecting the variant that is directly underneath the product (highlighted blue), Episerver selects the one that is listed underneath all the products under that category.. Quite the issue when there's lots of products and you the variants aren't visible!

Apr 04, 2018 10:11

We were seeing this issue as we were using a custom list propety attribute that was displaying the Commerce structure, however we've seen that there's a UI Hint available for this and has solved this issue! The UIHInt is:

Apr 12, 2018 13:46
* 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.