Class VariantInfoViewModelSettings
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
public class VariantInfoViewModelSettings : ViewSettingsBaseCurrencyBase<VariantInfoViewModel>
- Inheritance
-
VariantInfoViewModelSettings
- Inherited Members
Constructors
VariantInfoViewModelSettings()
Empty constructor for webapi
public VariantInfoViewModelSettings()
VariantInfoViewModelSettings(string, string, string, string, int)
Creates a configuration for constructing variantcombination viewmodels.
public VariantInfoViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId)
Parameters
VariantInfoViewModelSettings(string, string, string, string, int, bool)
Creates a configuration for constructing variantcombination viewmodels.
[Obsolete("Use other constructor", true)]
public VariantInfoViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat)
Parameters
languageId
string- Id of language
currencyCode
stringcountryCode
stringshopId
stringuserId
intshowPricesWithVat
bool
VariantInfoViewModelSettings(string, string, string, string, int, bool, DateTime?)
Creates a configuration for constructing variantcombination viewmodels.
public VariantInfoViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat, DateTime? time)
Parameters
languageId
stringcurrencyCode
stringcountryCode
stringshopId
stringuserId
intshowPricesWithVat
booltime
DateTime?
VariantInfoViewModelSettings(string, string, string, string, int, bool, DateTime?, long)
public VariantInfoViewModelSettings(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
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
Methods
EnsureFilledPropertiesExist()
If filled properties are empty, this method will add ALL valid property names.
public override void EnsureFilledPropertiesExist()