Table of Contents

Class UnitOptionViewModel

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

Represents a view model for a unit option.

public class UnitOptionViewModel : FillableViewModelBase
Inheritance
UnitOptionViewModel
Inherited Members
Extension Methods

Properties

Id

Gets or sets the unit id.

public string? Id { get; set; }

Property Value

string

Image

Gets or sets the image path.

public MediaViewModel? Image { get; set; }

Property Value

MediaViewModel

Name

Gets or sets the name of the unit.

public string? Name { get; set; }

Property Value

string

NeverOutOfStock

Gets or sets the value indicating whether the unit can be never out of stock.

public bool NeverOutOfStock { get; set; }

Property Value

bool

Price

Gets or sets the price of the product in this unit, after discounts.

Calculated with the same price settings (user, currency, country, shop and VAT) as Price, so it includes user-specific prices that are defined per unit.

Only filled when the product is created with price settings.

public PriceViewModel? Price { get; set; }

Property Value

PriceViewModel

PriceBeforeDiscount

Gets or sets the price of the product in this unit, before discounts.

Calculated like Price. Only filled when the product is created with price settings.

public PriceViewModel? PriceBeforeDiscount { get; set; }

Property Value

PriceViewModel

StockLevel

Gets or sets the stock level for the given unit

public double? StockLevel { get; set; }

Property Value

double?
To top