form-tracking.php
5 years ago
order-again.php
5 years ago
order-details-customer.php
4 years ago
order-details-item.php
5 years ago
order-details.php
5 years ago
order-downloads.php
5 years ago
tracking.php
5 years ago
tracking.php
61 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Order tracking |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/order/tracking.php. |
| 6 | * |
| 7 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 | * (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates |
| 15 | * @version 2.2.0 |
| 16 | */ |
| 17 | |
| 18 | defined( 'ABSPATH' ) || exit; |
| 19 | |
| 20 | $notes = $order->get_customer_order_notes(); |
| 21 | ?> |
| 22 | |
| 23 | <p class="order-info"> |
| 24 | <?php |
| 25 | echo wp_kses_post( |
| 26 | apply_filters( |
| 27 | 'woocommerce_order_tracking_status', |
| 28 | sprintf( |
| 29 | /* translators: 1: order number 2: order date 3: order status */ |
| 30 | __( 'Order #%1$s was placed on %2$s and is currently %3$s.', 'woocommerce' ), |
| 31 | '<mark class="order-number">' . $order->get_order_number() . '</mark>', |
| 32 | '<mark class="order-date">' . wc_format_datetime( $order->get_date_created() ) . '</mark>', |
| 33 | '<mark class="order-status">' . wc_get_order_status_name( $order->get_status() ) . '</mark>' |
| 34 | ) |
| 35 | ) |
| 36 | ); |
| 37 | ?> |
| 38 | </p> |
| 39 | |
| 40 | <?php if ( $notes ) : ?> |
| 41 | <h2><?php esc_html_e( 'Order updates', 'woocommerce' ); ?></h2> |
| 42 | <ol class="commentlist notes"> |
| 43 | <?php foreach ( $notes as $note ) : ?> |
| 44 | <li class="comment note"> |
| 45 | <div class="comment_container"> |
| 46 | <div class="comment-text"> |
| 47 | <p class="meta"><?php echo date_i18n( esc_html__( 'l jS \o\f F Y, h:ia', 'woocommerce' ), strtotime( $note->comment_date ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p> |
| 48 | <div class="description"> |
| 49 | <?php echo wpautop( wptexturize( $note->comment_content ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 50 | </div> |
| 51 | <div class="clear"></div> |
| 52 | </div> |
| 53 | <div class="clear"></div> |
| 54 | </div> |
| 55 | </li> |
| 56 | <?php endforeach; ?> |
| 57 | </ol> |
| 58 | <?php endif; ?> |
| 59 | |
| 60 | <?php do_action( 'woocommerce_view_order', $order->get_id() ); ?> |
| 61 |