How to get city state value from onepage checkout in Magento 2 in custom module
i had use below code for Magento 1.X but cant do it for magento 2.x
have any suggestion ? how can i get these values ?
Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getCity();
Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getRegionId();
Best Answer
We can do the same:
And then, we can get: