Magento Tutorials

To Make the Zip/Postal Code Optional for Checkout in Magento 2, You can Follow These Steps:

Howdy Magento Folks,

As we all know, Magento 2 comes with several built-in features compared to Magento 1.x for which you don’t need to do even a single line of coding. Among that, Magento 2 checkout is now much improved that is now divided into different checkout steps to take required customer information. To fulfil any order two factors plays an important role in any Ecommerce store, one is the payment and another is shipping. These two factors are powerful enough to make or break your business in multiple ways. Whenever the customer adds any products to cart and proceeds to checkout, Magento will ask the customer to enter their shipping address, city, state, country and zip code. But if you know not every country has Pincode and Magento 2 Checkout doesn’t allow the customer to proceed further without entering zip code and your customer will be stuck there.

So, it’s your responsibility to rescue your customer from this trouble by marking zip code as a non-required field for a specific country. But how to do that? But before that take a look at below list.

A-B

  • Angola: No postal code used.
  • Antigua and Barbuda: No postal code used.
  • Aruba: No postal code used.
  • Bahamas: No postal code used.
  • Belize: No postal code used.
  • Benin: No postal code used.
  • Botswana: No postal code used
  • Burkina Faso: No postal code used.
  • Burundi: No postal code used.

C

  • Cameroon: No postal code used.
  • Central African Republic: No postal code used.
  • The postal services in Hong Kong and Macau Special Administrative Regions remain separate from Mainland China, with no post code systems is currently used. See below for details.
  • Comoros: No postal code used.
  • Congo (Brazzaville): No postal code used.
  • Congo, Democratic Republic: No postal code used.
  • Cook Islands: No postal code used.
  • Côte d’Ivoire: No postal code used.

D-F

  • Djibouti: No postal code used.
  • Dominica: No postal code used.
  • East Timor: No postal code system in use since Indonesian withdrawal in 1999.
  • Equatorial Guinea: No postal code used.
  • Eritrea: No postal code used.
  • Fiji: No postal code used.
  • French Southern and Antarctic Territories: No postal code used.

G-K

  • Gambia: No postal code used.
  • Ghana: No postal code used.[citation needed]
  • Grenada: No postal code used.
  • Guinea: No postal code used.
  • Guyana: No postal code used.
  • Hong Kong: have postal code but not used.’For More information visit this Page Hong Kong Postal code
  • Jamaica: Previously JMAAA99 The code consists of five letters and two digits. The first two letters are always ‘JM’ (for Jamaica) while the third is for one of the four zones (A-D) into which the island is divided. The last two letters are for the parish, while the two digits are for the local post office.This has since been suspended, and Jamaica currently has no post code system. However, Kingston and Lower St. Andrew are divided into postal districts numbered 1-20
  • Kenya: 99999. Deliveries to PO Boxes only
  • Kiribati: No postal code used.
  • Korea, North: No postal code used.

L-M

  • Macau: No postal code used.
  • Malawi: No postal code used.
  • Mali: No postal code used.
  • Mauritania: No postal code used.
  • Mauritius: No postal code used.
  • Montserrat: No postal code used.

N-Q

  • Nauru: No postal code used.
  • Netherlands Antilles: No postal code used.
  • Niue: No postal code used.
  • Panama: No use of postal codes. Deliveries to PO Boxes only
  • Qatar: No postal code used.

R-T

  • Rwanda: No postal code used.
  • Saint Kitts and Nevis: No postal code used.
  • Saint Lucia: No postal code used.
  • Sao Tome and Principe: No postal code used.
  • Saudi Arabia: 99999* Deliveries to PO Boxes only
  • Seychelles: No postal code used.
  • Sierra Leone: No postal code used.
  • Solomon Islands: No postal code used.
  • Somalia: No postal code used. A 5 digit code has been publicized, but never taken into use.
  • South Africa: 9999* Included Namibia (ranges 9000-9299) until 1992, no longer used. See List of postal codes in South Africa
  • Suriname: No postal code used.
  • Syria: No postal code used. A 4-digit system has been announced. Status unknown.
  • Tanzania: No postal code used.
  • Tokelau: No postal code used.
  • Tonga: No postal code used.
  • Trinidad and Tobago: No postal code used.
  • Tuvalu: No postal code used.

U-Z

  • Uganda: No postal code used.
  • United Arab Emirates: No postal code used.
  • Vanuatu: No postal code used.
  • Yemen: No postal code used.
  • Zimbabwe: No postal code used

By default, Zipcode is a mandatory field in Magento 2 while checkout, so instead of disabling zip code field for all countries we can disable it for a specific country using backend option. It will help you to stop ruining your customer shopping experience.

You can refer above list to see countries with optional zip code. Now Go to Store –> Configuration –> General –> Country Options here you will find an option of “Zip/Postal Code is Optional for”. Now make selection countries for which you want to set zip code as an optional field and save the configuration.

That’s it! Now during frontend checkout, Magento 2 will no longer ask your customer for zip code in selected countries as shown below.

That’s’ the reason why we always advise you to ask Magento Experts who have deep knowledge Magento all Admin Functionalities. It will help you to save and time efforts instead of wasting your money on paid extensions.

Lastly, share this tutorial with your colleagues and Magento Friends and Let us know if you are facing an issue we are happy to help you.

Click to rate this post!
[Total: 12 Average: 4.7]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer?‍? and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy? & Helping? Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books? or Traveling?. Also, he is Speaker at Magento Meetups.

Recent Posts

How to Add a Custom Field to the Cart Price Rules Form in Magento 2?

Hello Magento Friends, In this blog, we will learn How to Add a Custom Field…

2 hours ago

How to Add Tooltip in Checkout Shipping Field in Magento 2?

Hello Magento Friends, In today’s blog, I will explain How to Add Tooltip in Checkout…

3 days ago

How to Integrate and Use MongoDB with Laravel?

MongoDB is a popular NoSQL database that offers flexibility and scalability when handling modern web…

4 days ago

NodeJS | Callback Function

In NodeJS, callbacks empower developers to execute asynchronous operations like reading files, handling requests, and…

5 days ago

How to Show SKU in Order Summary in Magento 2?

Hello Magento Friends, In today’s blog, we will learn How to Show SKU in Order…

1 week ago

Best Colors to Use for CTA Buttons

The "Buy Now" and "Add to Cart" buttons serve as the primary call-to-action (CTA) elements…

1 week ago