Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Override Shipping options View modes: 
User avatar
Member
Member
robert-pulldigital - 7/25/2013 3:23:30 AM
   
Override Shipping options
Our client needs to specify shipping options beyond the standard features.

Price varies on weight and postcode.

I guess we setup one shipping option in the cms and I override the ShippingCostsProvider

That method specifically doesn't take the SKU object which has been extended to include fields I need to check and I also want the postcode/zip code

So what would be the best way to get the current basket when overriding the GetShippingCostInfoInternal.

Something like CMSContext.GetCurrentBasket() would be great.

Thanks

User avatar
Certified Developer 8
Certified Developer 8
Petr Dvorak - 7/25/2013 3:42:52 AM
   
RE:Override Shipping options
If you are using standard Kentico E-commerce module, try
CMS.Ecommerce.ECommerceContext.CurrentShoppingCart
It should return current ShoppingCartInfo object and you can access its CartItems property to get individual cart items.

User avatar
Member
Member
robert-pulldigital - 7/25/2013 4:34:58 AM
   
RE:Override Shipping options
Yea that's perfect, is there a reference guide for the helper methods that I can look over? One that would of included the one above. I've also found the CurrentDocument property to be invaluable and would like to see them all.

Thank you

User avatar
Member
Member
kentico_davidb2 - 7/25/2013 4:48:10 AM
   
RE:Override Shipping options
Hi,
you can find sample code in your Kentico installation directory, which is usually
C:\Program Files (x86)\KenticoCMS\7.0\CodeSamples\App_Code Samples\E-commerce samples

You can directly use that as described in our Ecommerce guide: http://devnet.kentico.com/docs/ecommerceguide/customization_overview.htm

Also, please have a look in the API examples in:
Site manager -> Support -> API examples -> E-commerce

Lastly, the API reference is a good source to look for such information:
http://devnet.kentico.com/docs/kenticocms_api.zip