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
contextPriceContextThe information about the price context.
selectionPriceProductSelectionThe information about the product context.
Returns
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
contextPriceContextThe information about the price context.
productProductThe product to find prices for.
Returns
- IEnumerable<KeyValuePair<PriceQuantityInfo, PriceInfo>>
All applicable quantity prices for the product.