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>
Derived
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, 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)

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

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

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