Skip to content
Rakesh Jesadiya

Rakesh Jesadiya

3x Magento Master

  • Magento 2
    • PHPUnit
  • GraphQl
  • Git
  • Magento Master
    • Magento Master 2020
    • Magento Master 2019
    • Magento Master 2018
  • Magento 2 Certification
  • Contact Us

Tag: Country

Posted on August 8, 2019September 29, 2020

Get Country name by Country id Magento 2.

Retrieve Country full name from Country Id Using Magento 2 by Country Class of Directory Module.

You need to instantiate CountryFactory in your class __construct() method to get the country full name.

The class responsible to get name is Magento\Directory\Model\Country. Continue reading “Get Country name by Country id Magento 2.”

Share this:

  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to print (Opens in new window)
Posted on October 15, 2018September 10, 2019

How to get all Regions of Country by country code in magento 2?

In Magento 2 we can get all the regions list by country code. We can get all the regions of the specific country by Country code.

Magento\Directory\Model\Country is used to getting all the regions list by the country code. Continue reading “How to get all Regions of Country by country code in magento 2?”

Share this:

  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to print (Opens in new window)

Recent Posts

  • How to fetch Product Image URLs using GraphQl Magento 2?
  • Magento 2 Exception Invalid method Magento\Eav\Model\Entity\Attribute::canBeFilterableInGrid.
  • How to fetch Remote Branch updates in local branch by Git?
  • How to install magento 2 marketplace module by composer approach?
  • How to add debug log in the magento 2 using Zend Log?
  • How to use foreach loop with the array and objects in knockout js magento?
  • How to get product custom options list by GraphQl query?
  • How to fixed GraphQl Fields conflicting types. Use different aliases on the fields to fetch result?
  • How to use Group By and Having Clause SQL query in magento 2?
  • How to fixed GraphQl response The account sign-in was incorrect or your account is disabled temporarily in Magento?
Protected by Copyscape
  • © 2020 Rakesh Jesadiya. All Rights Reserved.