Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

Proper use of the Delivery and DeliveryItem classes in Kentico E-Commerce (8.2)

$
0
0
I have written my own custom multi carrier provider, and in the implementation of GetPrice, it accepts a Delivery object and a string (currencyCode): public decimal GetPrice(Delivery delivery, string currencyCode) { // Custom logic to calculate pricing } Prior to now, I have been able to get everything I need from delivery.Items[x].Product, which is a `SKUInfo` object. I now need to add some additional logic that is based off of a custom property within my `ShoppingCartItemInfo` object. There is currently no way to access the cart or cart item from a `Delivery` object, and the DeliveryItem.CustomData collection is empty, so it is definitely not automatically mapping any custom properties to this collection. How can I get access to the `ShoppingCartItemInfo`, given a `DeliveryItem`?

Viewing all articles
Browse latest Browse all 8832

Trending Articles