• Resolved alexjefimov

    (@alexjefimov)


    We have worked with developer who is away now.
    He has added code to functions.php to remove some woocommerce billing fields, like Company, State and others.

    This code:

    function remove_billing_fields( $fields = array() ) {
    	unset($fields['billing_address_2']);
    	unset($fields['billing_state']);
    	unset($fields['billing_city']);
    	unset($fields['billing_postcode']);
    	unset($fields['billing_country']);
    	return $fields;
    }
    add_filter('woocommerce_billing_fields', 'remove_billing_fields');

    To show fields to customers I have removed some of them from code.
    But there no fields showing. Also after cache has cleared.

    Please. What I have to fix?

    Thanks for any help!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi there,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    You can also visit the WooCommerce Facebook Community group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution and the above resources for developers were helpful. If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Do not show billing fields’ is closed to new replies.