29 Responses

  1. BobWP
    BobWP June 28, 2013 at 17:15 | | Reply

    Perfect timing. I was just going to do this and had found a tutorial on YouTube but it recommended putting this same code in a woocommerce file which kind of freaked me out. Good to see it works in the theme.php file as well … cheers!

  2. Karen
    Karen September 12, 2013 at 04:44 | | Reply

    Thank you for this code! Do you know how i can do this same thing for the Edit Address & My Account pages in Woocommerce? Thanks!

    1. Wesley Asher
      Wesley Asher April 5, 2014 at 19:59 | | Reply

      I know this is like wicked late but try this:

      function wpdebug_disable_account_addresses( $fields ) {
      return array();
      add_filter( ‘woocommerce_my_account_get_addresses’, ‘wpdebug_disable_account_addresses’ );

  3. clickmac
    clickmac September 12, 2013 at 13:43 | | Reply
  4. Karen
    Karen September 12, 2013 at 16:22 | | Reply

    That plugin was mentioned in the article already, and I do use that plugin for the checkout page. But I need the same limited fields ( First name, Last name, and email address only) on the Edit Address page and My Account page that are part of Woocommerce. Can anyone help me figure out how to do that?

  5. vj
    vj November 2, 2013 at 22:09 | | Reply

    This worked a treat – thanks!

  6. papa0urs
    papa0urs November 22, 2013 at 01:43 | | Reply

    I did it and now i have a blank screen and i cant login my wp account ;(

  7. Andrew Rezk
    Andrew Rezk December 26, 2013 at 02:25 | | Reply

    Thanks much for this helpful info., I used woocommerce checkout manager plugin, it removed all the fields but anyone knows how to remove the billing address title that shows on the checkout page?


    1. Alex
      Alex September 14, 2015 at 12:59 | | Reply

      Hi, you’d need to edit form-billing.php which can be found inside \wp-content\plugins\woocommerce\templates\checkout\ line 23 put two forward slashes \\ infront of _e( this will comment the line out.

  8. Vinny Moreira
    Vinny Moreira January 9, 2014 at 19:06 | | Reply

    It works! Thank you for this code.

  9. Dinga Bogdan
    Dinga Bogdan January 16, 2014 at 11:44 | | Reply

    “If I were you, I would just do it programmatically.” you just made me to get my hands dirty… again :)
    Thank you !

  10. sergioronei
    sergioronei August 10, 2014 at 18:01 | | Reply

    Yeah man! Thanks.

  11. Brad
    Brad October 31, 2014 at 16:46 | | Reply

    Worked perfect! Thanks. Is it just me or are there several quarks with WooCommerce? Seems like they would make a lot more money if they offered a pro version for $50 with additional features like this than trying to upsell a boat load of plugins for $100 each that only do one thing.

  12. saimon
    saimon October 31, 2014 at 18:31 | | Reply

    thanks for sharing this tips. it solves my prob..

  13. haru
    haru November 19, 2014 at 08:02 | | Reply

    hi i just want to empty the default billing details from my checkout page is ther any possibility for this.

  14. buscando1milhaoernando
    buscando1milhaoernando December 16, 2014 at 01:30 | | Reply

    Hey Jean, thanks, very nice post!

    Do you know a way (manually or automatic) to remove the whole section “additional information/billing and shipping address”?


    1. Coen
      Coen February 1, 2015 at 14:30 | | Reply

      I’d like to know how to do this too!
      It’s kinda strange when the titles still appear whilst there are no fields below them to fill….


  15. Judah Lamm
    Judah Lamm January 27, 2015 at 17:06 | | Reply

    Hey Jean,

    Thank you for the code! I was wondering if you knew how to turn it into more of an if statement? Meaning, I have two options on my checkout page (CC & Paypal) if the user clicks on Paypal, I would like your code to run.

    Do you know how/where to do that?


  16. Lana
    Lana March 2, 2015 at 02:27 | | Reply

    This totally fucked up my site. Now I can’t access it!!

    1. Judah
      Judah March 2, 2015 at 03:13 | | Reply

      Hey Lana.

      Where did you place the code?

      If you access your site via ftp, you should be able to locate the file and delete the code you put in.

  17. Anup Dhirwan
    Anup Dhirwan March 7, 2015 at 14:18 | | Reply

    Lana, you might have placed that code inside the braces of already existing code in theme’s functions.php. I did that too and “fucked up my site” anyway, i undo the modification via ftp and added the whole code outside the braces of the already existing code. That did the job.

  18. Harun R Rayhan
    Harun R Rayhan April 6, 2015 at 20:27 | | Reply

    Hay, I want to make it conditional. I’m making it easier, recently I installed BitPay payment method my woocommerce site. I have another payment option. I want to disable Billing details for BitPay only. Not for other payment option. Is it possible??

  19. Smartcooky
    Smartcooky April 30, 2015 at 23:18 | | Reply

    Can you make it work if you want to only have it apply to digital downloads? I will be selling physical products as well, not connected to my digital downloads.TIA.

  20. stanyy
    stanyy June 9, 2015 at 00:32 | | Reply

    The opening php tag looks lost in there. There is no supportive tag at the other end. I guess that may be why it produced a blank page (syntax error) for Lana and papa0urs.

    Thank you for the code. It was useful to me.

    By the way, if anyone would like to remove the header texts, paste the following code in your theme’s custom.css (if you have a child theme, use its style.css instead):

    .woocommerce-billing-fields h3 {
    display: none;
    .add_info_wccs {
    display: none;


    1. stanyy
      stanyy June 9, 2015 at 00:47 | | Reply

      Whoops.. error in code. Please use the this code instead:

      .woocommerce-billing-fields h3 {
      display: none;
      .woocommerce-shipping-fields h3 {
      display: none;

  21. stellen
    stellen August 31, 2015 at 07:59 | | Reply

    Late question, but after removing the billing fields only(keeping shipping fields as such), the order and the email does not have the shipping address. I have set the Delivery Destination to shipping by default.

    Any idea what I did wrong?

  22. Alex
    Alex September 14, 2015 at 13:01 | | Reply

    @JeanGalea: thank you for providing the work around, it was just what I needed :)

  23. eyd
    eyd November 15, 2015 at 13:55 | | Reply

    hey there, i am using exactly this method and there’s one strange issue i am experiencing. If a required field is missing, and the payment button is clicked – i get an error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
    no matter which field i removed.

  24. sathish
    sathish November 25, 2015 at 02:08 | | Reply

    how to remove default country selected in checkout page?

Leave a Reply