Please let me know in the comments if everything went as expected. I would be happy to revise the snippet if you report otherwise (please provide screenshots). I have tested this code with Storefront theme, the WooCommerce version listed above and a WordPress-friendly hosting.
Check out these free video tutorials. You can learn how to customize WooCommerce without unnecessary plugins, how to properly configure the WooCommerce plugin settings and even how to master WooCommerce troubleshooting in case of a bug!
Business Bloomer Founder
Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza.
48 thoughts on “WooCommerce: Disable PostCode/Zip Field on the Checkout Page”
you are welcome
Worked Perfectly fine Thanks
Thank you very much, it’s working fine for me, so I can remove a plugin to do this function before …
hi, this doesnt work, copied and pasted exactly, but no change. what could have gone wrong?
No idea, sorry
It worked perfectly, thank you!
It really works. Thank you Rodolfo,
And thanks for share these all codes.
If i need hide/unset field in checkout>billing/shipping adress.
Based on a multiple countries?
I have this peace of code, but how make this to multiple countries? And multiple fields?
Hi Jsotnas, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!
Hi there, please contact me in private. Thank you!
Hey. Is it possible to have a validation for post code so that the customer does not enter 0000?
Hello Nalia, thanks so much for your comment! Yes, this is possible – unfortunately this is custom work and I cannot provide a complementary solution here via the blog comments. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding! ~R
Using this snippet, you can remove multiple checkout fields. Just be sure to modify the field name, both filter and function. For example, if you don’t ship to more than one country, you could remove the country field by replacing “postcode” with “country”.
If you need to remove multiple fields or customize them more, use a plugin.
Thank you Cristian 🙂
Hi Today i have customize one of zip-code checker plugin using help of your all hooks code…i am Really thanks full to you.
Cool, thank you Mounish!
It worked.. Thanks..
What I need to add to this code so PostalCode dissapear from Editiing Billing & Shipping Addresses?
Gabriel, thanks for your comment! Yes, this is possible – but unfortunately this is custom work and I cannot provide a complementary solution here on the blog. Thanks a lot for your understanding! ~R
thanks it worked for me
Excellent! Thanks Adnan 🙂
hello, I copy and paste the code to function.php but it doesnt work.
Hey Burak, it should work 🙂 Just to make sure, the correct file is functions.php (with an “S” at the end). Let me know!
Where can i paste the text? I can’t seem to find the place to paste it.
Hello Hannah, thanks for your comment! You can place this snippet in your child theme’s functions.php file – if you need more guidance, please take a look at this video tutorial: https://businessbloomer.com/woocommerce-customization-hangout/
Thank you Rodolfo, It was driving me crazy 🙂
No problem Jose! Thanks for your feedback 🙂
Hi there, thanks for the plugin, however when I have tried to make the postcode field not mandatory and also removing it completely, Woo COmmerce checkout STILL shows “Please enter a valid postcode/ZIP” Even when the field isn’t visible during checkout… Any help is greatly appreciated. Rick
Hey Rick, thanks for your comment 🙂 This is strange, I use this trick on all my sites and get no validation warning. Are you running all the latest versions of WooCommerce / plugins / Theme / WP?
It really works but it change the other field in my checkout form 🙁
Hey Adi thanks for your feedback 🙂 What “other field” are you referring to?
Excelent job, it works, thank you very much!
Cheers Marius! 🙂
Hi Rodolfo, this sounds great, but will I have the option to remove the requirement for a postcode on the Shopping Cart page, where I calculate shipping?
Noelle, thanks for your feedback! Unfortunately you can’t do what you’re asking, see this post from Woocommerce developer. However, you could disable the shipping calculator all together from the Woo settings 🙂
Thanks for your reply, Rodolfo 😉
You’re welcome 🙂
Hi again Rodolfo, I just installed the free plugin and it works great, thank you! I just thought i’d send you the suggestion to have the minimal fields within the billing and shipping address settings as defaulting to ‘required’. For example, I nearly lost a sale because my billing and shipping sections don’t have ‘State/County’ as fields and yet the default setting is to have this field as ‘required’. It doesn’t seem to have affected customers from Ireland but a customer from the Netherlands was not able to complete her purchase because she could not move past this point. I suppose I should have checked all of the settings, but I didn’t. Just a suggestion for others who are lazy about checking these things like me! Thanks again!
Thanks so much for your feedback Noelle!
Thank your tips. It’s work for me
Thank you Khoa!
Hi, I am trying to eliminate en billing checkout the zip code but is not working.
your plugin working with woocommerce 2.3.7??
Hello Efrain 🙂 Thanks for your feedback. The plugin definitely works, I use it on all my websites – could you possibly send a screenshot of your Checkout Billing plugin settings (as per my article) so that I can take a look?