From: Laury GvR Date: Wed, 5 Jul 2017 14:48:06 +0000 (-0400) Subject: Updating the woocommerce templates to the newest version. Basically calling ids throu... X-Git-Tag: v1.0.6^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=1f425b48020d2cedf6b75838ac187c170a80d3e1;p=WP-Themes%2Fmunisinghockey.git Updating the woocommerce templates to the newest version. Basically calling ids through getters instead of directly. --- diff --git a/woocommerce/emails/customer-processing-order.php b/woocommerce/emails/customer-processing-order.php index 7d305bb..4ce27e3 100644 --- a/woocommerce/emails/customer-processing-order.php +++ b/woocommerce/emails/customer-processing-order.php @@ -31,7 +31,8 @@ do_action( 'woocommerce_email_header', $email_heading, $email ); ?> /** * @hooked WC_Emails::order_details() Shows the order details table. - * @hooked WC_Emails::order_schema_markup() Adds Schema.org markup. + * @hooked WC_Structured_Data::generate_order_data() Generates structured data. + * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. * @since 2.5.0 */ do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); diff --git a/woocommerce/emails/email-order-details.php b/woocommerce/emails/email-order-details.php index 6873138..3ef005b 100644 --- a/woocommerce/emails/email-order-details.php +++ b/woocommerce/emails/email-order-details.php @@ -13,31 +13,33 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates/Emails - * @version 2.5.0 + * @version 3.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } +$text_align = is_rtl() ? 'right' : 'left'; + do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); ?>

get_order_number() ); ?>

-

get_order_number() ); ?> (%s', date_i18n( 'c', strtotime( $order->order_date ) ), date_i18n( wc_date_format(), strtotime( $order->order_date ) ) ); ?>)

+

get_order_number() ); ?> (%s', $order->get_date_created()->format( 'c' ), wc_format_datetime( $order->get_date_created() ) ); ?>)

- - - + + + - email_order_items_table( array( + $sent_to_admin, 'show_image' => false, 'image_size' => array( 32, 32 ), @@ -52,8 +54,8 @@ do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plai foreach ( $totals as $total ) { $i++; ?> - - + +