Returns product catalog price based on the SKU data and the shopping cart data.
Discounts and/or taxes are included optionally. Result is in site main currency.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- sku
- Type: CMS.Ecommerce SKUInfo
SKU data
- cart
- Type: CMS.Ecommerce ShoppingCartInfo
Shopping cart data
- discounts
- Type: System Boolean
True - catalog discounts are applied to the price
- taxes
- Type: System Boolean
True - catalog taxes are applied to the discounted price
- forCart
- Type: System Boolean
True - This method is called within the shopping cart calculations, False - This method is called within the displaying price on the live site.
- column
- Type: System 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: System Double
If set, sku price is not taken from SKUInfo object.
Return Value
Type: DoubleSee Also