diff --git a/includes/shortcodes/class-wc-shortcode-view-order.php b/includes/shortcodes/class-wc-shortcode-view-order.php index 9a40be5315e..98eaf4c79c0 100644 --- a/includes/shortcodes/class-wc-shortcode-view-order.php +++ b/includes/shortcodes/class-wc-shortcode-view-order.php @@ -53,34 +53,10 @@ class WC_Shortcode_View_Order { $status = get_term_by('slug', $order->status, 'shop_order_status'); - echo '

' - . sprintf( __( 'Order %s made on %s', 'woocommerce'), $order->get_order_number(), date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ) ) - . '. ' . sprintf( __( 'Order status: %s', 'woocommerce' ), __( $status->name, 'woocommerce' ) ) - . '.

'; - - $notes = $order->get_customer_order_notes(); - if ($notes) : - ?> -

-
    - -
  1. -
    -
    -

    comment_date)); ?>

    -
    - comment_content)); ?> -
    -
    -
    -
    -
    -
  2. - -
- $order_id, + 'order' => $order, + 'status' => $status + ) ); } } \ No newline at end of file diff --git a/templates/myaccount/view-order.php b/templates/myaccount/view-order.php new file mode 100644 index 00000000000..f035eafbde7 --- /dev/null +++ b/templates/myaccount/view-order.php @@ -0,0 +1,40 @@ +' +. sprintf( __( 'Order %s made on %s', 'woocommerce'), $order->get_order_number(), date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ) ) +. '. ' . sprintf( __( 'Order status: %s', 'woocommerce' ), __( $status->name, 'woocommerce' ) ) +. '.

'; + +$notes = $order->get_customer_order_notes(); +if ($notes) : + ?> +

+
    + +
  1. +
    +
    +

    comment_date)); ?>

    +
    + comment_content)); ?> +
    +
    +
    +
    +
    +
  2. + +
+