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
stringId of language
currencyCode
stringCurrencyCode
countryCode
stringCountry code2
shopId
stringShop 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
stringId of language
currencyCode
stringCurrencyCode
countryCode
stringCountry code2
shopId
stringShop id
userId
intUser 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
stringcurrencyCode
stringcountryCode
stringshopId
stringuserId
intshowPricesWithVat
booltime
DateTime?stockLocationId
long
Properties
AssetCategorySettings
The asset category settings
public AssetCategoryViewModelSettings AssetCategorySettings { get; set; }
Property Value
CategoryFieldSettings
The category field settings
public CategoryFieldViewModelSetting CategoryFieldSettings { get; set; }
Property Value
GroupInfoSettings
The group info settings
public GroupInfoViewModelSettings GroupInfoSettings { get; set; }
Property Value
LoadVariantInfoOnVariants
If disabled, variantinfos will not be loaded on product viewmodels if the product is a variant
public bool LoadVariantInfoOnVariants { get; set; }
Property Value
ManufacturerSettings
Configures how manufacturer view should be configured.
public ManufacturerViewModelSettings ManufacturerSettings { get; set; }
Property Value
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
StockUnitSettings
The stock unit settings
public StockUnitViewModelSettings StockUnitSettings { get; set; }
Property Value
UnitOptionSettings
The unit option settings
public UnitOptionViewModelSettings UnitOptionSettings { get; }
Property Value
VariantInfoSettings
The variant info settings
public VariantInfoViewModelSettings VariantInfoSettings { get; set; }
Property Value
Methods
EnsureFilledPropertiesExist()
If filled properties are empty, this method will add ALL valid property names.
public override void EnsureFilledPropertiesExist()