我真的不想在WooCommerce上完全使用计费地址的概念。
我从客户那里拿钱并发送产品,仅此而已,无需让用户输入任何帐单地址信息。
iherb 网站运行良好,没有帐单地址。
如果我删除帐单地址,是否有任何问题?WooCommerce中是否有“从不使用账单地址”这样的选项?
我真的不想在WooCommerce上完全使用计费地址的概念。
我从客户那里拿钱并发送产品,仅此而已,无需让用户输入任何帐单地址信息。
iherb 网站运行良好,没有帐单地址。
如果我删除帐单地址,是否有任何问题?WooCommerce中是否有“从不使用账单地址”这样的选项?
我不认为有任何内置选项可以隐藏WooCommerce中的账单地址,因为它们是WooCommerce的默认字段。要么您必须创建自定义代码来使用挂钩隐藏节,要么您必须尝试插件。我也做了同样的事情,但使用了ThemeHigh提供的额外插件。
在woccommerce插件类/wc国家/地区添加代码。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;
}