| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying form allow user get back their order by the key in user profile page. |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/learnpress/orders/recover-my-order.php. |
| 6 |
* |
| 7 |
* @author ThimPress |
| 8 |
* @package Learnpress/Templates |
| 9 |
* @version 3.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
defined( 'ABSPATH' ) || exit(); |
| 13 |
?> |
| 14 |
|
| 15 |
<?php if ( isset( $order ) && is_a( $order, 'LP_Order' ) ) : ?> |
| 16 |
<?php if ( $order->is_guest() ) : ?> |
| 17 |
<div class="profile-recover-order"> |
| 18 |
<p><?php esc_html_e( 'This order was checked out by you but there is no user was assigned to.' ); ?></p> |
| 19 |
<p><?php esc_html_e( 'If the order is made for another one, you can send the code below to them.' ); ?></p> |
| 20 |
<p><?php esc_html_e( 'If the order is made for yourself, you can assign it to you here.' ); ?></p> |
| 21 |
<?php learn_press_get_template( 'order/recover-form.php', array( 'order' => $order ) ); ?> |
| 22 |
</div> |
| 23 |
|
| 24 |
<?php |
| 25 |
endif; |
| 26 |
endif; |
| 27 |
|
| 28 |
|