attribution-details.php
5 months ago
customer-history.php
2 months ago
customer-review-order-empty.php
4 weeks ago
customer-review-order-row.php
4 weeks ago
customer-review-order.php
1 month ago
form-tracking.php
2 years ago
order-again.php
2 years ago
order-details-customer.php
2 years ago
order-details-fulfillment-item.php
3 months ago
order-details-fulfillments.php
3 months ago
order-details-item.php
2 years ago
order-details.php
4 weeks ago
order-downloads.php
2 years ago
star-rating.php
1 month ago
tracking.php
3 months ago
tracking.php
69 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://woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates |
| 15 | * @version 10.6.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 | /** |
| 27 | * Filter to modify order tracking status text. |
| 28 | * |
| 29 | * @param string $order_status The order status text. |
| 30 | * |
| 31 | * @since 10.1.0 |
| 32 | */ |
| 33 | apply_filters( |
| 34 | 'woocommerce_order_tracking_status', |
| 35 | sprintf( |
| 36 | /* translators: 1: order number 2: order date 3: order status */ |
| 37 | __( 'Order #%1$s was placed on %2$s and is currently %3$s.', 'woocommerce' ), |
| 38 | '<mark class="order-number">' . $order->get_order_number() . '</mark>', |
| 39 | '<mark class="order-date">' . wc_format_datetime( $order->get_date_created() ) . '</mark>', |
| 40 | '<mark class="order-status">' . wc_get_order_status_name( $order->get_status() ) . '</mark>' |
| 41 | ), |
| 42 | $order |
| 43 | ) |
| 44 | ); |
| 45 | ?> |
| 46 | </p> |
| 47 | |
| 48 | <?php if ( $notes ) : ?> |
| 49 | <h2><?php esc_html_e( 'Order updates', 'woocommerce' ); ?></h2> |
| 50 | <ol class="commentlist notes"> |
| 51 | <?php foreach ( $notes as $note ) : ?> |
| 52 | <li class="comment note"> |
| 53 | <div class="comment_container"> |
| 54 | <div class="comment-text"> |
| 55 | <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> |
| 56 | <div class="description"> |
| 57 | <?php echo wp_kses_post( wpautop( wptexturize( $note->comment_content ) ) ); ?> |
| 58 | </div> |
| 59 | <div class="clear"></div> |
| 60 | </div> |
| 61 | <div class="clear"></div> |
| 62 | </div> |
| 63 | </li> |
| 64 | <?php endforeach; ?> |
| 65 | </ol> |
| 66 | <?php endif; ?> |
| 67 | |
| 68 | <?php do_action( 'woocommerce_view_order', $order->get_id() ); ?> |
| 69 |