Try our conversational search powered by Generative AI!

IList of Products and Product Variants not working as expected

Vote:
 

Hi guys,

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

        [Display(
            Name = "Product Area",
            Description = "The products to be displayed in the block.",
            GroupName = SystemTabNames.Content,
            Order = 20)]
        [CultureSpecific]
        [AllowedTypes(typeof(SupplierProduct), typeof(SupplierProductVariant))]
        [ListPropertyCommerceRootAttribute]
        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!

#189506
Edited, Mar 20, 2018 13:52
Vote:
 

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

#189860
Mar 26, 2018 16:46
Vote:
 

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!

https://imgur.com/a/rrFqQ

#190178
Apr 04, 2018 10:11
Vote:
 

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:

[UIHint(UIHint.CatalogNode)]
#190591
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.