|
@@ 262-272 (lines=11) @@
|
| 259 |
|
echo '<p class="none_set"><strong>' . __( 'Address', 'woocommerce' ) . ':</strong> ' . __( 'No billing address set.', 'woocommerce' ) . '</p>'; |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
foreach ( self::$billing_fields as $key => $field ) { |
| 263 |
|
if ( isset( $field['show'] ) && false === $field['show'] ) { |
| 264 |
|
continue; |
| 265 |
|
} |
| 266 |
|
|
| 267 |
|
$field_name = 'billing_' . $key; |
| 268 |
|
|
| 269 |
|
if ( $order->$field_name ) { |
| 270 |
|
echo '<p><strong>' . esc_html( $field['label'] ) . ':</strong> ' . make_clickable( esc_html( $order->$field_name ) ) . '</p>'; |
| 271 |
|
} |
| 272 |
|
} |
| 273 |
|
|
| 274 |
|
echo '</div>'; |
| 275 |
|
|
|
@@ 348-358 (lines=11) @@
|
| 345 |
|
} |
| 346 |
|
|
| 347 |
|
if ( ! empty( self::$shipping_fields ) ) { |
| 348 |
|
foreach ( self::$shipping_fields as $key => $field ) { |
| 349 |
|
if ( isset( $field['show'] ) && false === $field['show'] ) { |
| 350 |
|
continue; |
| 351 |
|
} |
| 352 |
|
|
| 353 |
|
$field_name = 'shipping_' . $key; |
| 354 |
|
|
| 355 |
|
if ( ! empty( $order->$field_name ) ) { |
| 356 |
|
echo '<p><strong>' . esc_html( $field['label'] ) . ':</strong> ' . make_clickable( esc_html( $order->$field_name ) ) . '</p>'; |
| 357 |
|
} |
| 358 |
|
} |
| 359 |
|
} |
| 360 |
|
|
| 361 |
|
if ( apply_filters( 'woocommerce_enable_order_notes_field', 'yes' == get_option( 'woocommerce_enable_order_comments', 'yes' ) ) && $post->post_excerpt ) { |