Posted on 21/10/2019 12:21:12
Hi Martin,
It sounds good with the variant combinations.
What is the reason that Simple variants are not included in that list? Both types of variants serves the same purpose, the only difference being that Extended variants offer more information.
Anyhow, using Model.Variants does not fit well in our scenario, where we want to list all variants for a product sorted by variant group. In this case, it would be nice if the view model had offered a list of variant groups, e.g. Model.VariantGroups.
Our workaround so far is to retrieve the product itself with Dynamicweb.Ecommerce.Services.Products.GetProductById(...) and then calling the .VariantGroups list on the product, but this approach makes the view model redundant. Therefore, let me make a feature request for making the VariantGroups available on the view model.
Best regards,
Roald