Php WooCommerce签出字段设置和自定义挂钩
有人知道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-&
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
相关: