Table of Contents

Class PriceProviderSample

Namespace
Dynamicweb.Ecommerce.Examples.Prices
Assembly
Dynamicweb.Ecommerce.Examples.dll
public class PriceProviderSample : PriceProvider
Inheritance
PriceProviderSample
Inherited Members

Methods

FindPrice(PriceContext, PriceProductSelection)

Finds the price for a given product in a given context. Can be called to show the price of a product, show the price of a product for a specific user, unit etc. Must be overriden.
public override PriceRaw FindPrice(PriceContext context, PriceProductSelection selection)

Parameters

context PriceContext
Context information.
selection PriceProductSelection
Product information.

Returns

PriceRaw
An instance of PriceRaw

Remarks

This method is called in 2 contexts. For showing a product and a product added to a cart or order. If the call comes from an order object, it can have a quantity of 2 or more and can be used to return the unit price for a product that is cheaper if more than one is bought
To top