Hide some order fields? - by groubee - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 9 years, 2 months ago ago by Eva Kemp

  • Avatar: groubee
    groubee
    Participant
    September 13, 2015 at 01:21

    Hi

    Is it possible to hide some of the woocommerce order fields? I mean some of them we dont use or want to offer…

    Can we hide: Company Name, secound address field (Apartment, suite, unit)

    see: https://www.dropbox.com/s/n9r4ozujwgzd1rw/hide-order-fields.jpg?dl=0

    Best regards
    Tonny

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    September 14, 2015 at 10:20

    Hello,

    You can refer to this article http://www.wpmayor.com/how-to-remove-the-billing-details-from-woocommerce-checkout/ , but use the code:

    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
     
    function custom_override_checkout_fields( $fields ) {
    unset($fields['billing']['billing_company']);
    unset($fields['billing']['billing_address_2']);
    
    return $fields;
    }

    Regards,
    Eva Kemp.

    Avatar: groubee
    groubee
    Participant
    September 14, 2015 at 17:24

    Thanks a lot Eva!!! it works great!!! love it!!

    Avatar: Eva
    Eva Kemp
    Support staff
    September 14, 2015 at 18:09

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Hide some order fields?’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.