Make postal codes optional for specific countries

 - 

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

Bạn đang xem: Make postal codes optional for specific countries

So, it’s your responsibility khổng lồ rescue your customer from this trouble by marking zip code as a non-required field for a specific country. But how lớn vì chưng that? But before that take a look at below các mục.

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 usedBurkimãng cầu 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 sầu Regions remain separate from Mainl& 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 sầu letters và two digits. The first two letters are always ‘JM’ (for Jamaica) while the third is for one of the four zones (A-D) inkhổng lồ 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, và Jamaica currently has no post code system. However, Kingston and Lower St. Andrew are divided into postal districts numbered 1-20Kenya: 99999. Deliveries to lớn PO Boxes onlyKiribati: No postal code used.Korea, North: No postal code used.

L-M

Macau: No postal code used.

Xem thêm: " Trâm Anh Thế Phiệt Là Gì ? Nghĩa Của Từ Trâm Anh Thế Phiệt Trong Tiếng Lào

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 lớn PO Boxes onlyQatar: No postal code used.

R-T

Rwanda: No postal code used.Saint Kitts & Nevis: No postal code used.Saint Lucia: No postal code used.Sao Tome and Principe: No postal code used.Saudi Arabia: 99999* Deliveries khổng lồ PO Boxes onlySeychelles: 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 inlớn use.South Africa: 9999* Included Namibia (ranges 9000-9299) until 1992, no longer used. See List of postal codes in South AfricaSuriname: 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 backkết thúc option. It will help you khổng lồ stop ruining your customer shopping experience.

*

You can refer above sầu 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 phối zip code as an optional field & save sầu the configuration.

*

That’s it! Now during frontend checkout, Magenkhổng lồ 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 lớn ask Magenkhổng lồ Experts who have sầu deep knowledge Magenlớn all Admin Functionalities. It will help you lớn save sầu & time efforts instead of wasting your money on paid extensions.

Xem thêm: Cách Kiểm Tra Số Dư Tài Khoản Là Gì ? Cách Kiểm Tra Số Dư Khả Dụng Dễ Dàng

Lastly, chia sẻ this tutorial with your colleagues and Magenlớn Friends and Let us know if you are facing an issue we are happy to help you.