$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>WooCommerce remove billing detail completly|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

WooCommerce remove billing detail completly

matteradmin9PV0评论

I really don't want to use billing address concept on WooCommerce completly.

I get money from customer and send product , that's all, no need to make user enter any billing address information.

iherb site works well without billing address.

If I remove billing address, are there any problem? Is there any option like 'Never use billing address' in WooCommerce?

I really don't want to use billing address concept on WooCommerce completly.

I get money from customer and send product , that's all, no need to make user enter any billing address information.

iherb site works well without billing address.

If I remove billing address, are there any problem? Is there any option like 'Never use billing address' in WooCommerce?

Share Improve this question asked Jan 19, 2018 at 2:49 Byeongin YoonByeongin Yoon 1761 silver badge10 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

I don't think there is any builtin options to hide billing address in WooCommerce because they are WooCommerce default fields. Either you have to create custom code to hide the section using hooks or you have to try a plugin. I have done the same thing but using additional plugin by ThemeHigh.

add code in woccommerce plugin class/wc-countries.php

add_filter('wocoommerce_checkout_fields', 'custom_override_checkout_fields');

function custom_override_checkout_fields($fields){
unset(#fields['order']['ordercommnets']);
unset ($fields['billing']['billing_first_name']);
unset ($fields['billing']['billing_last_name']);
unset( $fields['billing']['billing_company'] );
  unset( $fields['billing']['billing_address_1'] );
  unset( $fields['billing']['billing_address_2'] );
  unset( $fields['billing']['billing_city'] );
  unset( $fields['billing']['billing_state'] );
  unset( $fields['billing']['billing_postcode'] );
  unset( $fields['billing']['billing_phone'] );
'''''
''''''
return $fields;
}

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far