Table of Contents

Class ProductViewModelSettings

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

Configuration of how a product viewmodel should be created.

public class ProductViewModelSettings : ViewSettingsBaseCurrencyBase<ProductViewModel>
Inheritance
ProductViewModelSettings
Inherited Members

Constructors

ProductViewModelSettings()

Empty constructor for webapi

public ProductViewModelSettings()

ProductViewModelSettings(string, string, string, string)

Creates a configuration for constructing product viewmodels.

public ProductViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId)

Parameters

languageId string

Id of language

currencyCode string

CurrencyCode

countryCode string

Country code2

shopId string

Shop id

ProductViewModelSettings(string, string, string, string, int)

Creates a configuration for constructing product viewmodels.

public ProductViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId)

Parameters

languageId string

Id of language

currencyCode string

CurrencyCode

countryCode string

Country code2

shopId string

Shop id

userId int

User id

ProductViewModelSettings(string, string, string, string, int, bool, DateTime?, long)

Creates a configuration for constructing product viewmodels.

public ProductViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat, DateTime? time, long stockLocationId)

Parameters

languageId string
currencyCode string
countryCode string
shopId string
userId int
showPricesWithVat bool
time DateTime?
stockLocationId long

Properties

AssetCategorySettings

The asset category settings

public AssetCategoryViewModelSettings AssetCategorySettings { get; set; }

Property Value

AssetCategoryViewModelSettings

CategoryFieldSettings

The category field settings

public CategoryFieldViewModelSetting CategoryFieldSettings { get; set; }

Property Value

CategoryFieldViewModelSetting

GroupInfoSettings

The group info settings

public GroupInfoViewModelSettings GroupInfoSettings { get; set; }

Property Value

GroupInfoViewModelSettings

LoadVariantInfoOnVariants

If disabled, variantinfos will not be loaded on product viewmodels if the product is a variant

public bool LoadVariantInfoOnVariants { get; set; }

Property Value

bool

ManufacturerSettings

Configures how manufacturer view should be configured.

public ManufacturerViewModelSettings ManufacturerSettings { get; set; }

Property Value

ManufacturerViewModelSettings

MediaSettings

Configures how multimedia content is handled.

public MediaViewModelSettings MediaSettings { get; set; }

Property Value

MediaViewModelSettings

mediaSettings

PriceSettings

Configures how the price view should be configured, if price is filled.

public PriceViewModelSettings PriceSettings { get; set; }

Property Value

PriceViewModelSettings

configurationOfPriceViewModel

ProductFieldSettings

The product field settings

public FieldValueViewModelSetting ProductFieldSettings { get; set; }

Property Value

FieldValueViewModelSetting

StockUnitSettings

The stock unit settings

public StockUnitViewModelSettings StockUnitSettings { get; set; }

Property Value

StockUnitViewModelSettings

UnitOptionSettings

The unit option settings

public UnitOptionViewModelSettings UnitOptionSettings { get; }

Property Value

UnitOptionViewModelSettings

VariantInfoSettings

The variant info settings

public VariantInfoViewModelSettings VariantInfoSettings { get; set; }

Property Value

VariantInfoViewModelSettings

Methods

EnsureFilledPropertiesExist()

If filled properties are empty, this method will add ALL valid property names.

public override void EnsureFilledPropertiesExist()
To top