after_order_table.php
21 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Shipment tracking links |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/flexible-shipping/myaccount/after_order_table.php |
| 6 | * |
| 7 | * @author WP Desk |
| 8 | * @version 1.0.0 |
| 9 | */ |
| 10 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | exit; // Exit if accessed directly. |
| 13 | } |
| 14 | ?> |
| 15 | <h2><?php esc_html_e( 'Shipment', 'flexible-shipping' ); ?></h2> |
| 16 | <?php foreach ( $shipments as $shipment ) : ?> |
| 17 | <p> |
| 18 | <?php esc_html_e( 'Track shipment: ', 'flexible-shipping' ); ?><a target="_blank" href="<?php echo esc_attr( $shipment['tracking_url'] ); ?>"><?php echo esc_attr( $shipment['tracking_number'] ); ?></a> |
| 19 | </p> |
| 20 | <?php endforeach; ?> |
| 21 |