Table of Contents

Class DiscountViewModelSettings

Namespace
Dynamicweb.Ecommerce.ProductCatalog
Assembly
Dynamicweb.Ecommerce.dll
public class DiscountViewModelSettings : ViewSettingsBaseCurrencyBase<DiscountViewModel>
Inheritance
DiscountViewModelSettings
Inherited Members

Constructors

DiscountViewModelSettings()

Empty constructor for webapi
public DiscountViewModelSettings()

DiscountViewModelSettings(string, string, string, string, int)

Creates a configuration for constructing price viewmodels.
public DiscountViewModelSettings(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

DiscountViewModelSettings(string, string, string, string, int, bool)

Creates a configuration for constructing price viewmodels.
[Obsolete("Use other constructor", true)]
public DiscountViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool pricesWithVat)

Parameters

languageId string
Id of language
currencyCode string
CurrencyCode
countryCode string
Country code2
shopId string
Shop id
userId int
User id
pricesWithVat bool

DiscountViewModelSettings(string, string, string, string, int, bool, DateTime?)

Creates a configuration for constructing price viewmodels.
public DiscountViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool pricesWithVat, DateTime? time)

Parameters

languageId string
currencyCode string
countryCode string
shopId string
userId int
pricesWithVat bool
time DateTime?

Properties

MediaSettings

Configures how multimedia content is handled.
public MediaViewModelSettings MediaSettings { get; set; }

Property Value

MediaViewModelSettings
mediaSettings

Methods

EnsureFilledPropertiesExist()

If filled properties are empty, this method will add ALL valid property names.
public override void EnsureFilledPropertiesExist()
To top