Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php WooCommerce签出字段设置和自定义挂钩_Php_Wordpress_Woocommerce_Field_Checkout - Fatal编程技术网

Php WooCommerce签出字段设置和自定义挂钩

Php WooCommerce签出字段设置和自定义挂钩,php,wordpress,woocommerce,field,checkout,Php,Wordpress,Woocommerce,Field,Checkout,有人知道Woocommerce插件文件中的原始签出字段设置在哪里吗?例如,原始字段标签和占位符等 For Original Fields please visit on your "woocommerce/templates/checkout/form-billing.php" Here you will see a function //This below line of code is responsible to get the fields $fields = $checkout-&

有人知道Woocommerce插件文件中的原始签出字段设置在哪里吗?例如,原始字段标签和占位符等

For Original Fields please visit on your "woocommerce/templates/checkout/form-billing.php"

Here you will see a function
//This below line of code is responsible to get the fields
$fields = $checkout->get_checkout_fields( 'billing' );

//this below code is resposnible to echo those fields/labels etc
woocommerce_form_field( $key, $field, $checkout->get_value( $key ) );

If you want to go in depth please visit woocommerce/includes/wc-template-fucntions.php "function woocommerce_form_field( $key, $args, $value = null )", check this.
希望这能帮到你

Woocommerce中没有签出字段设置

但是您可以使用:
-
-或者其中大部分是商业性的

1)签出字段基本上由3个Woocommerce类管理:
-类使用(和方法)
-类使用和
-类也用于我的帐户地址字段

和用于定义不同字段类型的位置

2)定制中涉及的主要挂钩有:
-过滤钩和过滤器 -过滤钩和过滤器 -过滤钩和过滤器 -过滤钩和过滤器 -过滤钩和过滤器

3)涉及的主要相关模板有:
-
checkout/form checkout.php

-
checkout/form billing.php

-
checkout/formshipping.php

-
checkout/form loging.php

相关: