admin管理员组文章数量:1130349
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 badges2 Answers
Reset to default 0I 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;
}
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 badges2 Answers
Reset to default 0I 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;
}
本文标签: WooCommerce remove billing detail completly
版权声明:本文标题:WooCommerce remove billing detail completly 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749124972a2319629.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论