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