API Questions on Kentico API.
Version 6.x > API > Ecommerce ShoppingCartInfoObj.TotalShipping readonly issue View modes: 
User avatar
Member
Member
johnz02-hotmail - 11/28/2012 10:15:49 AM
   
Ecommerce ShoppingCartInfoObj.TotalShipping readonly issue
Hi,

I'm currently trying to do some customization on shipping cost.
However the ShoppingCartInfoObj.TotalShipping is read only, I need to be able to set value to this property. Just wondering how can I override this property ?

Thanks & Regards

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 12/4/2012 6:56:28 PM
   
RE:Ecommerce ShoppingCartInfoObj.TotalShipping readonly issue
Hi,

This is done using the custom ShippingOptionInfoProvider. A complete explanation of the approach can be found in our Blogs at Blogs/Petr-Vozak/October-2011/E-commerce-6--New-customization-model

In version 6 default installation, an example can be found in
\App_Code\CMSModules\Ecommerce\Samples\CustomShippingOptionInfoProvider.cs


Hope this will help.

Regards,
Zdenek