|
@@ 103-110 (lines=8) @@
|
| 100 |
|
$this->checkout_fields['billing'] = WC()->countries->get_address_fields( $this->get_value( 'billing_country' ), 'billing_' ); |
| 101 |
|
$this->checkout_fields['shipping'] = WC()->countries->get_address_fields( $this->get_value( 'shipping_country' ), 'shipping_' ); |
| 102 |
|
|
| 103 |
|
if ( get_option( 'woocommerce_registration_generate_username' ) == 'no' ) { |
| 104 |
|
$this->checkout_fields['account']['account_username'] = array( |
| 105 |
|
'type' => 'text', |
| 106 |
|
'label' => __( 'Account username', 'woocommerce' ), |
| 107 |
|
'required' => true, |
| 108 |
|
'placeholder' => _x( 'Username', 'placeholder', 'woocommerce' ) |
| 109 |
|
); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
if ( get_option( 'woocommerce_registration_generate_password' ) == 'no' ) { |
| 113 |
|
$this->checkout_fields['account']['account_password'] = array( |
|
@@ 112-119 (lines=8) @@
|
| 109 |
|
); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
if ( get_option( 'woocommerce_registration_generate_password' ) == 'no' ) { |
| 113 |
|
$this->checkout_fields['account']['account_password'] = array( |
| 114 |
|
'type' => 'password', |
| 115 |
|
'label' => __( 'Account password', 'woocommerce' ), |
| 116 |
|
'required' => true, |
| 117 |
|
'placeholder' => _x( 'Password', 'placeholder', 'woocommerce' ) |
| 118 |
|
); |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
$this->checkout_fields['order'] = array( |
| 122 |
|
'order_comments' => array( |