Table of Contents

Class BomConfigurationViewModel

Namespace
Dynamicweb.Ecommerce.ProductCatalog
Assembly
Dynamicweb.Ecommerce.dll

Represents the complete BOM (Bill of Materials / bundle) configuration for a product that is of type BOM. Acts as the top-level container that holds both the fixed items and the configurable groups of the bundle.

public class BomConfigurationViewModel : FillableViewModelBase
Inheritance
BomConfigurationViewModel
Inherited Members

Remarks

A BOM product is a bundle whose composition is defined by two complementary collections:

  • ItemsFixed products that are always included in the bundle and cannot be changed by the customer.
  • GroupsConfigurable groups where the customer selects one product from a set of options to build their personalised bundle.

In Razor templates, use Items to render the fixed part of the bundle and Groups to render the product-picker UI for each configurable slot:

@foreach (var item in Model.BomConfiguration.Items)
{
    <p>@item.Quantity x @item.Name</p>
}
@foreach (var group in Model.BomConfiguration.Groups)
{
    <select name="@group.Id">
        @foreach (var product in group.Products) { ... }
    </select>
}

Properties

Groups

Gets or sets the configurable BOM groups. Each group lets the customer choose one product from a set of options.

public required List<BomGroupViewModel> Groups { get; set; }

Property Value

List<BomGroupViewModel>
See Also

Items

Gets or sets the fixed BOM items that are always part of the bundle and cannot be changed by the customer.

public required List<BomItemViewModel> Items { get; set; }

Property Value

List<BomItemViewModel>
See Also

See Also

To top