Table of Contents

Interface IPriceInfoProvider

Namespace
Dynamicweb.Ecommerce.Prices
Assembly
Dynamicweb.Ecommerce.dll

To completely take over price calculation from eCommerce, create a class that implements this interface and overwrites FindPriceInfo

public interface IPriceInfoProvider

Methods

FindPriceInfo(PriceContext, PriceProductSelection)

Finds the price info.

PriceInfo FindPriceInfo(PriceContext context, PriceProductSelection selection)

Parameters

context PriceContext

The information about the price context.

selection PriceProductSelection

The information about the product context.

Returns

PriceInfo

A PriceInfo object.

Remarks

See the interface description of IPriceInfoProvider for example of implementation.

FindQuantityPriceInfos(PriceContext, Product)

Finds the quantity prices for a product in a given context.

IEnumerable<KeyValuePair<PriceQuantityInfo, PriceInfo>> FindQuantityPriceInfos(PriceContext context, Product product)

Parameters

context PriceContext

The information about the price context.

product Product

The product to find prices for.

Returns

IEnumerable<KeyValuePair<PriceQuantityInfo, PriceInfo>>

All applicable quantity prices for the product.

To top