Click or drag to resize
IProductPricingServiceGetPrices Method
Calculates the price of the given sku with the specified product options configuration. Returned prices are in the specified Currency.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
ProductPrices GetPrices(
	SKUInfo sku,
	IEnumerable<SKUInfo> options,
	PriceParameters priceParams
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
Main product, accessory product or product variant.
options
Type: System.Collections.GenericIEnumerableSKUInfo
Attribute and text product options configuration.
priceParams
Type: CMS.EcommercePriceParameters
PriceParameters parameters of the current calculation.

Return Value

Type: ProductPrices
Instance of ProductPrices with calculation summary.
Exceptions
ExceptionCondition
ArgumentNullExceptionsku or priceParams is null.
Remarks
StandardPrice represents base price including options configuration. Price represents final price with applied discounts. AppliedDiscounts collection contains applied discounts with respective discount values.
See Also