php Woo Checkout Fields&Arrays #woo

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Woo Checkout Fields&Arrays #woo相关的知识,希望对你有一定的参考价值。

/*Default Woocommerce Checkout Fields & properties:
  Array of overridable properties:
    type – type of field (text, textarea, password, select)
    label – label for the input field
    placeholder – placeholder for the input
    class – class for the input
    required – true or false, whether or not the field is require
    clear – true or false, applies a clear fix to the field/label
    label_class – class for the label element
    options – for select boxes, array of options (key => value pairs)

  Hook: woocommerce_checkout_fields
      Billing
          billing_first_name
          billing_last_name
          billing_company
          billing_address_1
          billing_address_2
          billing_city
          billing_postcode
          billing_country
          billing_state
          billing_email
          billing_phone
      Shipping
          shipping_first_name
          shipping_last_name
          shipping_company
          shipping_address_1
          shipping_address_2
          shipping_city
          shipping_postcode
          shipping_country
          shipping_state
      Account
          account_username
          account_password
          account_password-2
      Order
          order_comments    
          
  Billing & Shipping Hook: woocommerce_default_address_fields
      country
      first_name
      last_name
      company
      address_1
      address_2
      city
      state
      postcode  
*/

以上是关于php Woo Checkout Fields&Arrays #woo的主要内容,如果未能解决你的问题,请参考以下文章

为 Woocommerce 电子邮件主题启用自定义字段占位符

php - PayPal Express Checkout - 传递字段

显示或隐藏其他 Checkout 自定义字段的自定义下拉选择器

php 结帐:更改付款图标#woo

php 结帐:添加送货通知#woo

php 结账:不需要电话号码#woo