Magento2 – How to Get Country Name Using Country Code 0 (0)

Magento2 – How to Get Country Name Using Country Code 0 (0)

Create Instance to Object Manager then inject dependency to perform your query: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); Now load your country by the following code: While AE is the country

Magento2 How to Get Country Code Collection 0 (0)

Magento2 How to Get Country Code Collection 0 (0)

To get country list data, you need to create instance of Country collection model `Magento\Directory\Model\ResourceModel\Country\CollectionFactory`. Once instance is created, you can load it by current store.