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.EcommerceAssembly: 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: System Boolean
True - catalog discounts are applied to the price
- taxes
- Type: System Boolean
True - catalog taxes are applied to the discounted price
- forCart (Optional)
- Type: System 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: 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