I have added new column in Quote_address table but I am not able to get the value when i do the following steps;

 $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
 $billingAddress = $order->getBillingAddress();
 $shippingAddress = $order->getShippingAddress();

Is there anything wrong in this code ?

Thank you in advance.

1 Answer 1


First of all, orders are stored in sales_order (and sales_order_address) in contrast to sales_quote (and sales_quote_address). It looks to me as if your code uses orders, and you can't get the quote address this way.

However, you should read about extension attributes, as this is the way new fields should be added in Magento 2.

I think this question & answer might help: How to get Extension Attribute in a model in Magento 2?

  • I followed this and this didn't get the value either Oct 17, 2019 at 16:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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