When requesting shipping rates from shipping quote engines, like FedEx and UPS it can result with an error. Currently such error is written into
sqe_error session variable. When processing orders in batches this will make each order to overwrite error, that happened during previous order processing.
Store errors into
sqe_errors array, where key is OrderID. To implement this the Shipping Quoting Engine needs to be aware of the OrderID for which shipping rates are being retrieved.
- when calling
ShippingQuoteCollector::GetShippingQuotesmethod we need to provide order object instance in
- when creating shipping rate caching key we should remove
orderparameter from there, because serializing it will only result in rate cache being order, not address-specific thus making it useless