I'm trying to get address_id of sales_flat_quote_address table as mentioned in attached image from quote during multi-shipping checkout process but no luck. I want to use that address_id in following file path. Any help should be appreciated. Thanks. File Path:- /app/code/local/Mage/Shipping/Model/Carrier/Flatrate.php

sales_flat_quote_address Table


Have you tried these:

$quote->getBillingAddress()->getId(); // billing address id
$quote->getShippingAddress()->getId(); // shipping address id

For multi-shipping:

$addresses = $quote->getAllShippingAddresses();
foreach ($addresses as $address) {
    $address_id = $address->getId();
  • Hi. I have already tried these But issue is i'm trying to get address_id during multi-shipping checkout process, and i'm not getting it. – Raj Sep 26 '18 at 6:57
  • @Raj, I have updated my answer. – Richard Feraro Sep 26 '18 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.