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`?
↧