SKUInfoProvider GetSKUPrice Method (SKUInfo, ShoppingCartInfo, Boolean, Boolean, Boolean, String, SKUInfo, Double)Kentico 8.1 API Reference
Returns product catalog price based on the SKU data and shopping cart data. Catalog discounts and/or taxes are included optionally. Result is in site main currency.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

sku
Type: CMS.Ecommerce SKUInfo
SKU data
cart
Type: CMS.Ecommerce ShoppingCartInfo
Shopping cart data
discounts
Type: OnlineSystem Boolean
True - catalog discounts are applied to the price
taxes
Type: OnlineSystem Boolean
True - catalog taxes are applied to the discounted price
forCart (Optional)
Type: OnlineSystem Boolean
True - This method is called within the shopping cart calculations, False (default) - This method is called within the displaying price on the live site.
column (Optional)
Type: OnlineSystem String
Name of the column the price should be retrieved from. If empty, SKUPrice column is used.
parentSku (Optional)
Type: CMS.Ecommerce SKUInfo
The parent SKU for option(SKU) price calculation. Parent SKU taxes and discounts will be used.
customPrice (Optional)
Type: OnlineSystem Double
If set, sku price is not taken from SKUInfo object.

Return Value

Type: OnlineDouble
See Also