Class BomItemViewModel
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a fixed item in a BOM (Bill of Materials / bundle) product — a product that is always included in the bundle and cannot be changed or removed by the customer.
public class BomItemViewModel : FillableViewModelBase
- Inheritance
-
BomItemViewModel
- Inherited Members
Remarks
Fixed BOM items are exposed via Items. Unlike the configurable BomGroupViewModel slots, fixed items require no customer interaction — they are simply rendered as part of the bundle summary.
Typical Razor template usage:
@foreach (var item in Model.BomConfiguration.Items)
{
<li>@item.Quantity x @item.Name</li>
}
Properties
Id
Gets or sets the unique identifier of the BOM item.
public required string Id { get; set; }
Property Value
Name
Gets or sets the display name of the BOM item shown in the bundle summary.
public required string Name { get; set; }
Property Value
Product
Gets or sets the product information for this BOM item. Use ProductInfoViewModel extension methods to load the full product view model if additional details are needed.
public required ProductInfoViewModel Product { get; set; }
Property Value
Quantity
Gets or sets the quantity of this item included in the bundle (e.g. 2 means two units are added to the order).
public double Quantity { get; set; }