Skip to content
Rakesh Jesadiya

Rakesh Jesadiya

3x Magento Master

  • Magento 2
    • PHPUnit
  • GraphQl
  • Git
  • Javascript
  • 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:

  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Pinterest (Opens in new window) Pinterest
  • Print (Opens in new window) Print
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:

  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Pinterest (Opens in new window) Pinterest
  • Print (Opens in new window) Print

Recent Posts

  • Magento 2 How to fetch product row_id from product collection?
  • Magento Setup upgrade error for smile elasticsuite database table not found error.
  • How to Managing Guest Cart Billing address (V1/guest-carts/:cartId/billing-address) by REST API Magento 2?
  • How to get customer id from API header bearer token Magento 2?
  • How to use insertFromSelect query in database Magento 2 with best practice?
  • How to check is database table exists or not by Magento 2?
  • How to fix Magento custom patch throws an error while patch applied?
  • How product website relation are stored in catalog_product_website table Magento 2?
  • How to get store code by store cookie Magento 2?
  • How to fix TypeError: target.extend is not a function mixins in Magento 2?
Protected by Copyscape
  • © 2020 Rakesh Jesadiya. All Rights Reserved.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.