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