scott@stonesoftwaresolutions.com
-
9/4/2007 6:02:56 PM
Best Practice for retreiving additional data in Custom Module
I'm building a CustomShippingOptionInfoProvider to retrieve dynamic shipping options from UPS. In order to get accurate shipping options, I need to know the weight, height, width, and depth of SKUInfo items related to the order, and the name and shipping address of the customer. None of this information is available as parameters to any of the methods in ShippingOptionInfoProvider.
What is the recommended way to retrieve this information? I would like the information to be consistent in all use cases. For example, if the customer is placing an order, the info is availabe in a CartInfo object, but if an administrator is editing an order, the info is tied to an order. Is there a consistent way to get the data in both cases?
Mostly, I want to avoid introducing any unnecessary dependencies in my code that could break when you release an update.
Thanks, Scott
|