@@ -72,8 +72,12 @@ discard block |
||
72 | 72 | |
73 | 73 | <dl class="customer_details"> |
74 | 74 | <?php |
75 | - if ( $order->billing_email ) echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>'; |
|
76 | - if ( $order->billing_phone ) echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>'; |
|
75 | + if ( $order->billing_email ) { |
|
76 | + echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>'; |
|
77 | + } |
|
78 | + if ( $order->billing_phone ) { |
|
79 | + echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>'; |
|
80 | + } |
|
77 | 81 | |
78 | 82 | // Additional customer details hook |
79 | 83 | do_action( 'woocommerce_order_details_after_customer_details', $order ); |
@@ -230,9 +234,12 @@ discard block |
||
230 | 234 | |
231 | 235 | <?php // @codingStandardsIgnoreEnd ?> |
232 | 236 | |
233 | - <?php else : ?> |
|
237 | + <?php else { |
|
238 | + : ?> |
|
234 | 239 | |
235 | - <div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' ); ?></div> |
|
240 | + <div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' ); |
|
241 | +} |
|
242 | +?></div> |
|
236 | 243 | |
237 | 244 | <?php endif; ?> |
238 | 245 |