- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2021
11:51 PM
12-25-2021
11:51 PM
How to get value from quote_address table in Magento2
How to get value from quote_address table for checkout and cart page in Magento2. Need values for guest and login user both in Magento2 cart and checkout page
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2021
02:47 AM
12-27-2021
02:47 AM
Re: How to get value from quote_address table in Magento2
You can use the below code :
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $cart = $objectManager->get('\Magento\Checkout\Model\Cart'); $billingAddress = $cart->getQuote()->getBillingAddress(); print_r($billingAddress->getData()); $shippingAddress = $cart->getQuote()->getShippingAddress(); print_r($shippingAddress->getData());
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.
200+ Magento 2 Extensions for Enhanced Shopping Experience.