| @@ 273-288 (lines=16) @@ | ||
| 270 | // Display form |
|
| 271 | echo '<div class="edit_address">'; |
|
| 272 | ||
| 273 | foreach ( self::$billing_fields as $key => $field ) { |
|
| 274 | if ( ! isset( $field['type'] ) ) { |
|
| 275 | $field['type'] = 'text'; |
|
| 276 | } |
|
| 277 | if ( ! isset( $field['id'] ) ){ |
|
| 278 | $field['id'] = '_billing_' . $key; |
|
| 279 | } |
|
| 280 | switch ( $field['type'] ) { |
|
| 281 | case 'select' : |
|
| 282 | woocommerce_wp_select( $field ); |
|
| 283 | break; |
|
| 284 | default : |
|
| 285 | woocommerce_wp_text_input( $field ); |
|
| 286 | break; |
|
| 287 | } |
|
| 288 | } |
|
| 289 | ?> |
|
| 290 | <p class="form-field form-field-wide"> |
|
| 291 | <label><?php _e( 'Payment Method:', 'woocommerce' ); ?></label> |
|
| @@ 365-381 (lines=17) @@ | ||
| 362 | echo '<div class="edit_address">'; |
|
| 363 | ||
| 364 | if ( ! empty( self::$shipping_fields ) ) { |
|
| 365 | foreach ( self::$shipping_fields as $key => $field ) { |
|
| 366 | if ( ! isset( $field['type'] ) ) { |
|
| 367 | $field['type'] = 'text'; |
|
| 368 | } |
|
| 369 | if ( ! isset( $field['id'] ) ){ |
|
| 370 | $field['id'] = '_shipping_' . $key; |
|
| 371 | } |
|
| 372 | ||
| 373 | switch ( $field['type'] ) { |
|
| 374 | case 'select' : |
|
| 375 | woocommerce_wp_select( $field ); |
|
| 376 | break; |
|
| 377 | default : |
|
| 378 | woocommerce_wp_text_input( $field ); |
|
| 379 | break; |
|
| 380 | } |
|
| 381 | } |
|
| 382 | } |
|
| 383 | ||
| 384 | if ( apply_filters( 'woocommerce_enable_order_notes_field', 'yes' == get_option( 'woocommerce_enable_order_comments', 'yes' ) ) ) { |
|