File: /var/www/html/onlineshop/wp-content/themes/nautica/woocommerce/checkout/thankyou.php
<?php
/**
* Thankyou page
*
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/thankyou.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
* @version 3.7.0
*/
defined( 'ABSPATH' ) || exit;
if ( $order ) : ?>
<div class="">
<ul id="order_step" class="step process-steps process-steps-v1 process-3 clearfix">
<li class="step_done first">
<a href="#">
<span><i class="icons icons-lg radius-x icons-darker icons-bodered">01</i> <br><?php esc_html_e('SHOPPING CART','nautica'); ?></span>
</a>
</li>
<li class="step_done second">
<a href="#">
<span><i class="icons icons-lg radius-x icons-darker icons-bodered">02</i><br><?php esc_html_e('CHECK OUT','nautica'); ?></span></a>
</li>
<li class="step_current last" id="step_end">
<span><i class="icons icons-lg radius-x icons-darker icons-bodered">03</i><br><?php esc_html_e('ORDER COMPLETE','nautica'); ?></span>
</li>
</ul>
</div>
<?php if ( $order->has_status( 'failed' ) ) : ?>
<p><?php esc_html_e( 'Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction.', 'nautica' ); ?></p>
<p><?php
if ( is_user_logged_in() )
esc_html_e( 'Please attempt your purchase again or go to your account page.', 'nautica' );
else
esc_html_e( 'Please attempt your purchase again.', 'nautica' );
?></p>
<p>
<a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>" class="button pay"><?php esc_html_e( 'Pay', 'nautica' ) ?></a>
<?php if ( is_user_logged_in() ) : ?>
<a href="<?php echo esc_url( wc_get_page_permalink( 'myaccount' ) ); ?>" class="button pay"><?php esc_html_e( 'My Account', 'nautica' ); ?></a>
<?php endif; ?>
</p>
<?php else : ?>
<div class="order-complate">
<p>
<?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you for shopping with us. Your order has been received.', 'nautica' ), $order ); ?>
</p>
<div class="thankyou-action">
<a href="<?php echo esc_url( home_url('/') );?>" class="btn btn-primary-border"><?php esc_html_e('Home page','nautica'); ?></a>
<a href="<?php echo esc_url(get_permalink( wc_get_page_id( 'shop' ) ));?>" class="btn btn-primary"><?php esc_html_e('Continue shopping','nautica'); ?></a>
</div>
<div class="engo-order-detail-overview">
<ul class="order_details">
<li class="order">
<?php esc_html_e( 'Order Number:', 'nautica' ); ?>
<strong><?php echo trim($order->get_order_number()); ?></strong>
</li>
<li class="date">
<?php esc_html_e( 'Date:', 'nautica' ); ?>
<strong><?php echo wc_format_datetime( $order->get_date_created() ); ?></strong>
</li>
<?php if ( is_user_logged_in() && $order->get_user_id() === get_current_user_id() && $order->get_billing_email() ) : ?>
<li class="woocommerce-order-overview__email email">
<?php _e( 'Email:', 'nautica' ); ?>
<strong><?php echo trim($order->get_billing_email()); ?></strong>
</li>
<?php endif; ?>
<li class="total">
<?php esc_html_e( 'Total:', 'nautica' ); ?>
<strong><?php echo trim($order->get_formatted_order_total()); ?></strong>
</li>
<?php if ( $order->get_payment_method_title() ) : ?>
<li class="method">
<?php esc_html_e( 'Payment Method:', 'nautica' ); ?>
<strong><?php echo wp_kses_post( $order->get_payment_method_title() ); ?></strong>
</li>
<?php endif; ?>
</ul>
</div>
</div>
<div class="clear"></div>
<?php endif; ?>
<div class="engo-notice-order">
<?php do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() ); ?>
</div>
<div class="engo-thankyou-order-detail-recheck">
<?php do_action( 'woocommerce_thankyou', $order->get_id() ); ?>
</div>
<?php else : ?>
<p><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'nautica' ), null ); ?></p>
<?php endif; ?>