Table of Contents

Class PriceManager

Namespace
Dynamicweb.Ecommerce.Prices
Assembly
Dynamicweb.Ecommerce.dll
Represents a price manager. Provides prepares and finds prices.
public class PriceManager
Inheritance
PriceManager
Inherited Members

Examples

Methods

FindInformativePrice(Product)

Finds the informative price.
[Obsolete("Use overload with PriceContext")]
public static object FindInformativePrice(Product product)

Parameters

product Product
The product.

Returns

object
The found price.

FindInformativePrice(Product, double)

Finds the informative price.
[Obsolete("Use overload with PriceContext")]
public static object FindInformativePrice(Product product, double quantity)

Parameters

product Product
The product.
quantity double
The quantity.

Returns

object
The found price.

FindInformativePrice(Product, double, string, Currency)

Finds the informative price.
[Obsolete("Use overload with PriceContext")]
public static object FindInformativePrice(Product product, double quantity, string variantId, Currency currency)

Parameters

product Product
The product.
quantity double
The quantity.
variantId string
The variant ID.
currency Currency
The currency.

Returns

object
The found price.

FindInformativePrice(Product, double, string, Currency, string)

Finds the informative price.
[Obsolete("Use overload with PriceContext")]
public static object FindInformativePrice(Product product, double quantity, string variantId, Currency currency, string unitId)

Parameters

product Product
The product.
quantity double
The quantity.
variantId string
The variant ID.
currency Currency
The currency.
unitId string
The unit ID.

Returns

object
The found price.

FindPrice(PriceContext, PriceProductSelection, bool)

public static object FindPrice(PriceContext context, PriceProductSelection selection, bool isInformative)

Parameters

context PriceContext
selection PriceProductSelection
isInformative bool

Returns

object

FindPrice(PriceContext, Product, string, long, bool)

public static object FindPrice(PriceContext context, Product product, string unitId, long stockLocationId, bool isInformative)

Parameters

context PriceContext
product Product
unitId string
stockLocationId long
isInformative bool

Returns

object

FindPrice(Product)

Finds the price.
[Obsolete("Use overload with PriceContext")]
public static object FindPrice(Product product)

Parameters

product Product
The product.

Returns

object
The found price.

Examples

FindPrice(Product, double)

Finds the price.
[Obsolete("Use overload with PriceContext")]
public static object FindPrice(Product product, double quantity)

Parameters

product Product
The product.
quantity double
The quantity.

Returns

object
The found price.

Examples

FindPrice(Product, double, string, Currency)

Finds the price.
[Obsolete("Use overload with PriceContext")]
public static object FindPrice(Product product, double quantity, string variantId, Currency currency)

Parameters

product Product
The product.
quantity double
The quantity.
variantId string
The variant ID.
currency Currency
The currency.

Returns

object
The found price.

Examples

FindPrice(Product, double, string, Currency, string)

Finds the price.
[Obsolete("Use overload with PriceContext")]
public static object FindPrice(Product product, double quantity, string variantId, Currency currency, string unitId)

Parameters

product Product
The product.
quantity double
The quantity.
variantId string
The variant ID.
currency Currency
The currency.
unitId string
The unit ID.

Returns

object
The found price.

Examples

FindPrice(Product, double, string, Currency, string, double)

Finds the price.
[Obsolete("Use overload with PriceContext")]
public static object FindPrice(Product product, double quantity, string variantId, Currency currency, string unitId, double quantityAllVariants)

Parameters

product Product
The product.
quantity double
The quantity.
variantId string
The variant ID.
currency Currency
The currency.
unitId string
The unit ID.
quantityAllVariants double
The quantity of all variants.

Returns

object
The found price.

GetInformativePrice(PriceContext, Product)

Gets the informative price for a given product.
public static PriceInfo GetInformativePrice(PriceContext context, Product product)

Parameters

context PriceContext
Price context
product Product
Product

Returns

PriceInfo
Informative price

GetInformativePrice(PriceContext, Product, string, long)

Gets the informative price for a given product.
public static PriceInfo GetInformativePrice(PriceContext context, Product product, string unitId, long stockLocationId)

Parameters

context PriceContext
Price context
product Product
Product
unitId string
Unit identifier
stockLocationId long
Stock location identifier

Returns

PriceInfo
Informative price

GetInformativePrice(Product, string, string)

Gets the informative price.
[Obsolete("Use overload with PriceContext")]
public static PriceInfo GetInformativePrice(Product product, string currencyCode, string vatGroupCode)

Parameters

product Product
currencyCode string
Currency code
vatGroupCode string
Vat group code

Returns

PriceInfo

GetInformativePrice(Product, string, string, string)

Gets the informative price.
[Obsolete("Use overload with PriceContext")]
public static PriceInfo GetInformativePrice(Product product, string unitId, string currencyCode, string vatGroupCode)

Parameters

product Product
unitId string
currencyCode string
Currency code
vatGroupCode string
Vat group code

Returns

PriceInfo

GetInformativePrice(Product, string, string, string, string)

Gets the informative price.
[Obsolete("Use overload with PriceContext")]
public static PriceInfo GetInformativePrice(Product product, string unitId, string currencyCode, string vatGroupCode, string shopId)

Parameters

product Product
unitId string
currencyCode string
Currency code
vatGroupCode string
Vat group code
shopId string
Country code2

Returns

PriceInfo

GetInformativePrice(Product, string, string, string, string, StockLocation)

Gets the informative price.
[Obsolete("Use overload with PriceContext")]
public static PriceInfo GetInformativePrice(Product product, string unitId, string currencyCode, string vatGroupCode, string shopId, StockLocation stockLocation)

Parameters

product Product
unitId string
currencyCode string
Currency code
vatGroupCode string
Vat group code
shopId string
Country code2
stockLocation StockLocation
The stock location.

Returns

PriceInfo

GetInformativePrice(Product, string, string, string, string, StockLocation, int)

Gets the informative price.
[Obsolete("Use overload with PriceContext")]
public static PriceInfo GetInformativePrice(Product product, string unitId, string currencyCode, string vatGroupCode, string shopId, StockLocation stockLocation, int userId)

Parameters

product Product
unitId string
currencyCode string
Currency code
vatGroupCode string
Vat group code
shopId string
Country code2
stockLocation StockLocation
The stock location.
userId int

Returns

PriceInfo

GetPrice(PriceContext, Product)

Gets the price for a given product.
public static PriceInfo GetPrice(PriceContext context, Product product)

Parameters

context PriceContext
Price context
product Product
Product

Returns

PriceInfo
Price

GetPrice(PriceContext, Product, string, long)

Gets the price for a given product.
public static PriceInfo GetPrice(PriceContext context, Product product, string unitId, long stockLocationId)

Parameters

context PriceContext
Price context
product Product
Product
unitId string
Unit identifier
stockLocationId long
Stock location identifier

Returns

PriceInfo
Price

GetPrice(Product, string, string, int)

Gets the price. This is the final calculated price for the product.
[Obsolete("Use overload with PriceContext")]
public static PriceInfo GetPrice(Product product, string currencyCode, string countryCode, int userId)

Parameters

product Product
The product
currencyCode string
Currency code
countryCode string
Country code
userId int
The user id.

Returns

PriceInfo

GetPrice(Product, string, string, string)

Gets the price. This is the final calculated price for the product.
[Obsolete("Use overload with PriceContext")]
public static PriceInfo GetPrice(Product product, string currencyCode, string countryCode, string unitId)

Parameters

product Product
The product
currencyCode string
Currency code
countryCode string
Country code
unitId string
The unit id.

Returns

PriceInfo

GetPrice(Product, string, string, string, int)

Gets the price. This is the final calculated price for the product.
[Obsolete("Use overload with PriceContext")]
public static PriceInfo GetPrice(Product product, string currencyCode, string countryCode, string unitId, int userId)

Parameters

product Product
The product
currencyCode string
Currency code
countryCode string
Country code
unitId string
The unit id.
userId int
The user id.

Returns

PriceInfo

GetPrice(Product, string, string, string, int, string)

Gets the price. This is the final calculated price for the product.
[Obsolete("Use overload with PriceContext")]
public static PriceInfo GetPrice(Product product, string currencyCode, string countryCode, string unitId, int userId, string shopId)

Parameters

product Product
The product
currencyCode string
Currency code
countryCode string
Country code
unitId string
The unit id.
userId int
The user id.
shopId string
The shop id.

Returns

PriceInfo

GetPrice(Product, string, string, string, int, string, StockLocation)

Gets the price. This is the final calculated price for the product.
[Obsolete("Use overload with PriceContext")]
public static PriceInfo GetPrice(Product product, string currencyCode, string countryCode, string unitId, int userId, string shopId, StockLocation stockLocation)

Parameters

product Product
The product
currencyCode string
Currency code
countryCode string
Country code
unitId string
The unit id.
userId int
The user id.
shopId string
The shop id.
stockLocation StockLocation
The stock location.

Returns

PriceInfo

PreparePrices(PriceContext, IEnumerable<PriceProductSelection>)

Prepares the prices.
public static void PreparePrices(PriceContext context, IEnumerable<PriceProductSelection> selections)

Parameters

context PriceContext
The price context.
selections IEnumerable<PriceProductSelection>
The product selections.

PreparePrices(PriceContext, IEnumerable<Product>)

Prepares the prices.
public static void PreparePrices(PriceContext context, IEnumerable<Product> products)

Parameters

context PriceContext
The price context.
products IEnumerable<Product>
The products.

PreparePrices(PriceContext, IEnumerable<Product>, long)

Prepares the prices.
public static void PreparePrices(PriceContext context, IEnumerable<Product> products, long stockLocationId)

Parameters

context PriceContext
The price context.
products IEnumerable<Product>
The products.
stockLocationId long
Stock location identifier

PreparePrices(ProductCollection)

Prepares the prices.
[Obsolete("Use overload with PriceContext")]
public static void PreparePrices(ProductCollection products)

Parameters

products ProductCollection
The products.

PreparePrices(Dictionary<Product, double>)

Prepares the prices.
[Obsolete("Use overload with PriceContext")]
public static void PreparePrices(Dictionary<Product, double> products)

Parameters

products Dictionary<Product, double>
The products.

PreparePrices(IEnumerable<Product>)

Prepares the prices.
[Obsolete("Use overload with PriceContext")]
public static void PreparePrices(IEnumerable<Product> products)

Parameters

products IEnumerable<Product>
The products.
To top