billing-form-fields.php
1 year ago
billing.php
1 year ago
cart.php
1 year ago
checkout-details.php
1 year ago
checkout.php
1 year ago
order-placement-failed.php
1 year ago
order-placement-success.php
1 year ago
order-placement-failed.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Order order placement failed template |
| 4 | * |
| 5 | * @package Tutor\templates |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 3.0.0 |
| 9 | */ |
| 10 | |
| 11 | use Tutor\Ecommerce\CheckoutController; |
| 12 | use TUTOR\Input; |
| 13 | |
| 14 | tutor_utils()->tutor_custom_header(); |
| 15 | |
| 16 | $order_status; |
| 17 | $order_id; |
| 18 | $error_msg = Input::get( 'error_message' ); |
| 19 | $back_url = wp_get_referer() ? wp_get_referer() : CheckoutController::get_page_url();?> |
| 20 | |
| 21 | <div class="tutor-container tutor-order-status-wrapper"> |
| 22 | <div class="tutor-d-flex tutor-flex-column tutor-align-center tutor-gap-2 tutor-px-20 tutor-py-80 tutor-text-center"> |
| 23 | <div class="tutor-order-status-icon"> |
| 24 | <img src="<?php echo esc_attr( tutor()->url . 'assets/images/orders/payment-failed.svg' ); ?>" alt="<?php esc_html_e( 'payment failed', 'tutor' ); ?>"> |
| 25 | </div> |
| 26 | |
| 27 | <div class="tutor-order-status-content"> |
| 28 | <h2 class="tutor-fs-3 tutor-fw-medium tutor-color-black"> |
| 29 | <?php esc_html_e( 'Payment failed', 'tutor' ); ?> |
| 30 | </h2> |
| 31 | <p class="tutor-fs-6 tutor-color-secondary"> |
| 32 | <?php echo $error_msg ? esc_html( $error_msg ) : esc_html__( 'An error occurred. Please try to place the order again', 'tutor' ); ?> |
| 33 | </p> |
| 34 | </div> |
| 35 | |
| 36 | <div class="tutor-order-status-actions"> |
| 37 | <a href="<?php echo esc_url( $back_url ); ?>" class="tutor-btn tutor-btn-primary"> |
| 38 | <?php esc_html_e( 'Back to Checkout', 'tutor' ); ?> |
| 39 | </a> |
| 40 | </div> |
| 41 | </div> |
| 42 | </div> |
| 43 | <?php tutor_utils()->tutor_custom_footer(); ?> |
| 44 |