/** * Get the quote address the ship group is the destination for. * * @param ITaxedShipGroup * @return Mage_Sales_Model_Quote_Address|null */ protected function _getQuoteAddressForShipGroup(ITaxedShipGroup $shipGroup) { // If the destination id can be guaranteed to match between request and // response, the id generated for the request could be captured with the // address to link the destination payload back up with the quote address. return $this->_quote->getAddressesCollection()->getItemByColumnValue('destination_id', $shipGroup->getDestination()->getId()); }