Class ViewSettingsBaseCurrencyBase<T>
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
Base configuration for views that require a language and a currency code to be contructed.
public abstract class ViewSettingsBaseCurrencyBase<T> : ViewSettingsLanguageBase<T> where T : FillableViewModelBase, new()
Type Parameters
T
Fillable ViewModel
- Inheritance
-
ViewSettingsBaseCurrencyBase<T>
- Derived
- Inherited Members
Constructors
ViewSettingsBaseCurrencyBase()
protected ViewSettingsBaseCurrencyBase()
ViewSettingsBaseCurrencyBase(string)
Creates a configuration for constructing product viewmodels.
protected ViewSettingsBaseCurrencyBase(string languageId)
Parameters
languageId
stringId of language
ViewSettingsBaseCurrencyBase(string, string, string, string, int)
Creates a configuration for constructing product viewmodels.
public ViewSettingsBaseCurrencyBase(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
ViewSettingsBaseCurrencyBase(string, string, string, string, int, bool)
Creates a configuration for constructing product viewmodels.
public ViewSettingsBaseCurrencyBase(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat)
Parameters
languageId
stringcurrencyCode
stringcountryCode
stringshopId
stringuserId
intshowPricesWithVat
bool
ViewSettingsBaseCurrencyBase(string, string, string, string, int, bool, DateTime?)
Creates a configuration for constructing product viewmodels.
public ViewSettingsBaseCurrencyBase(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat, DateTime? time)
Parameters
languageId
stringcurrencyCode
stringcountryCode
stringshopId
stringuserId
intshowPricesWithVat
booltime
DateTime?
ViewSettingsBaseCurrencyBase(string, string, string, string, int, bool, DateTime?, long)
Creates a configuration for constructing product viewmodels.
public ViewSettingsBaseCurrencyBase(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
CountryCode
Country code2 that is to be used for vat on any price-calculations.
public string CountryCode { get; set; }
Property Value
- string
Country code2
CurrencyCode
Currency code used in creation of product viewmodel. Default: Currency marked as default.
public string CurrencyCode { get; set; }
Property Value
- string
currencyCode
ShopId
Shop id used in creation of product viewmodel.
public string ShopId { get; set; }
Property Value
- string
Shop ID.
ShowPricesWithVat
Gets or sets a value that indicates if the price (display price) property of priceviewmodel should include vat or not
public bool ShowPricesWithVat { get; set; }
Property Value
- bool
User id
StockLocationId
Stocklocationid used for price lookups in price matrix for a given stocklocation
public long StockLocationId { get; set; }
Property Value
Time
public DateTime? Time { get; set; }
Property Value
UserId
User id that is to be used on any price-calculations. Will be overriden with information from the WebAPIs that support UserToken Authorization.
public int UserId { get; set; }
Property Value
- int
User id
Methods
EnsureContext<TS>(ViewSettingsBase<TS>)
public override void EnsureContext<TS>(ViewSettingsBase<TS> settings) where TS : FillableViewModelBase, new()
Parameters
settings
ViewSettingsBase<TS>
Type Parameters
TS