Table of Contents

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>
Inherited Members

Constructors

ViewSettingsBaseCurrencyBase()

protected ViewSettingsBaseCurrencyBase()

ViewSettingsBaseCurrencyBase(string)

Creates a configuration for constructing product viewmodels.
protected ViewSettingsBaseCurrencyBase(string languageId)

Parameters

languageId string
Id of language

ViewSettingsBaseCurrencyBase(string, string, string)

Creates a configuration for constructing product viewmodels.
[Obsolete("Use other constructor", true)]
public ViewSettingsBaseCurrencyBase(string languageId, string currencyCode, string countryCode)

Parameters

languageId string
Id of language
currencyCode string
CurrencyCode
countryCode string
Country code2

ViewSettingsBaseCurrencyBase(string, string, string, string)

Creates a configuration for constructing product viewmodels.
[Obsolete("Use other constructor", true)]
public ViewSettingsBaseCurrencyBase(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.

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 string
Id of language
currencyCode string
CurrencyCode
countryCode string
Country code2
shopId string
Shop ID.
userId int
User 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 string
currencyCode string
countryCode string
shopId string
userId int
showPricesWithVat 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 string
currencyCode string
countryCode string
shopId string
userId int
showPricesWithVat bool
time DateTime?

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

public ViewSettingsBaseCurrencyBase(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

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

OrderDate

[Obsolete("Use time property", true)]
public DateTime? OrderDate { get; set; }

Property Value

DateTime?

ShopId

Shop id used in creation of product viewmodel.
public string ShopId { get; set; }

Property Value

string
Shop ID.

ShowPricesWithVat

Indicates if the price (display price) property of priceviewmodel should include vat or not.
public bool ShowPricesWithVat { get; set; }

Property Value

bool

StockLocationId

Stocklocationid used for price lookups in price matrix for a given stocklocation
public long StockLocationId { get; set; }

Property Value

long

Time

public DateTime? Time { get; set; }

Property Value

DateTime?

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
To top