Include date in customer emails again

This commit is contained in:
Mike Jolley 2017-10-13 15:09:21 +01:00
parent 7df8f6bec6
commit c2c213fe05
3 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ class WC_Email_Customer_Invoice extends WC_Email {
if ( $paid ) { if ( $paid ) {
return __( 'Your {site_title} order from {order_date}', 'woocommerce' ); return __( 'Your {site_title} order from {order_date}', 'woocommerce' );
} else { } else {
return __( 'Invoice for order {order_number} from {order_date}', 'woocommerce' ); return __( 'Invoice for order #{order_number}', 'woocommerce' );
} }
} }
@ -63,9 +63,9 @@ class WC_Email_Customer_Invoice extends WC_Email {
*/ */
public function get_default_heading( $paid = false ) { public function get_default_heading( $paid = false ) {
if ( $paid ) { if ( $paid ) {
return __( 'Order {order_number} details', 'woocommerce' ); return __( 'Your order details', 'woocommerce' );
} else { } else {
return __( 'Invoice for order {order_number}', 'woocommerce' ); return __( 'Invoice for order #{order_number}', 'woocommerce' );
} }
} }

View File

@ -25,7 +25,7 @@ $text_align = is_rtl() ? 'right' : 'left';
do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); ?> do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); ?>
<?php if ( ! $sent_to_admin ) : ?> <?php if ( ! $sent_to_admin ) : ?>
<h2><?php _e( 'Order details', 'woocommerce' ); ?></h2> <h2><?php printf( __( 'Order #%s', 'woocommerce' ), $order->get_order_number() ); ?> (<?php printf( '<time datetime="%s">%s</time>', $order->get_date_created()->format( 'c' ), wc_format_datetime( $order->get_date_created() ) ); ?>)</h2>
<?php else : ?> <?php else : ?>
<h2><a class="link" href="<?php echo esc_url( admin_url( 'post.php?post=' . $order->get_id() . '&action=edit' ) ); ?>"><?php printf( __( 'Order #%s', 'woocommerce' ), $order->get_order_number() ); ?></a> (<?php printf( '<time datetime="%s">%s</time>', $order->get_date_created()->format( 'c' ), wc_format_datetime( $order->get_date_created() ) ); ?>)</h2> <h2><a class="link" href="<?php echo esc_url( admin_url( 'post.php?post=' . $order->get_id() . '&action=edit' ) ); ?>"><?php printf( __( 'Order #%s', 'woocommerce' ), $order->get_order_number() ); ?></a> (<?php printf( '<time datetime="%s">%s</time>', $order->get_date_created()->format( 'c' ), wc_format_datetime( $order->get_date_created() ) ); ?>)</h2>
<?php endif; ?> <?php endif; ?>

View File

@ -86,7 +86,7 @@ $text_lighter_20 = wc_hex_lighter( $text, 20 );
} }
#body_content table td { #body_content table td {
padding: 48px; padding: 48px 48px 0;
} }
#body_content table td td { #body_content table td td {