Click or drag to resize
ICatalogPriceCalculatorGetPrices Method
Returns product prices for the specified product or variant.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
ProductCatalogPrices GetPrices(
	SKUInfo sku,
	IEnumerable<SKUInfo> options,
	ShoppingCartInfo cart
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
A product or a product variant.
options
Type: System.Collections.GenericIEnumerableSKUInfo
Product options of all types (accessory, attribute, text). Use null to get prices without options.
cart
Type: CMS.EcommerceShoppingCartInfo
A shopping cart providing context of calculation.

Return Value

Type: ProductCatalogPrices
Exceptions
ExceptionCondition
ArgumentNullExceptionsku or cart is null.
See Also