customer details. closes #6470
This commit is contained in:
parent
4234502265
commit
1a5b9aced3
File diff suppressed because one or more lines are too long
|
@ -17,6 +17,9 @@
|
|||
border-top: 0;
|
||||
}
|
||||
}
|
||||
th {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
tr {
|
||||
|
@ -26,7 +29,7 @@
|
|||
display: block;
|
||||
|
||||
&:before {
|
||||
content: attr(data-title) ':';
|
||||
content: attr(data-title) ': ';
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1083,7 +1083,17 @@ p.demo_store {
|
|||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
tfoot td, tfoot th {
|
||||
tbody {
|
||||
tr:first-child {
|
||||
th,
|
||||
td {
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
tfoot td,
|
||||
tfoot th,
|
||||
tbody th {
|
||||
font-weight:bold;
|
||||
border-top: 1px solid rgba(0,0,0,0.1);
|
||||
}
|
||||
|
|
|
@ -113,15 +113,15 @@ $order = wc_get_order( $order_id );
|
|||
<header>
|
||||
<h2><?php _e( 'Customer details', 'woocommerce' ); ?></h2>
|
||||
</header>
|
||||
<dl class="customer_details">
|
||||
<table class="shop_table shop_table_responsive customer_details">
|
||||
<?php
|
||||
if ( $order->billing_email ) echo '<dt>' . __( 'Email:', 'woocommerce' ) . '</dt><dd>' . $order->billing_email . '</dd>';
|
||||
if ( $order->billing_phone ) echo '<dt>' . __( 'Telephone:', 'woocommerce' ) . '</dt><dd>' . $order->billing_phone . '</dd>';
|
||||
if ( $order->billing_email ) echo '<tr><th>' . __( 'Email:', 'woocommerce' ) . '</th><td data-title="' . __( 'Email', 'woocommerce' ) . '">' . $order->billing_email . '</td></tr>';
|
||||
if ( $order->billing_phone ) echo '<tr><th>' . __( 'Telephone:', 'woocommerce' ) . '</th><td data-title="' . __( 'Telephone', 'woocommerce' ) . '">' . $order->billing_phone . '</td></tr>';
|
||||
|
||||
// Additional customer details hook
|
||||
do_action( 'woocommerce_order_details_after_customer_details', $order );
|
||||
?>
|
||||
</dl>
|
||||
</table>
|
||||
|
||||
<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue