2011-12-09 17:01:56 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2012-08-14 18:05:45 +00:00
|
|
|
* Thankyou page
|
|
|
|
*
|
|
|
|
* @author WooThemes
|
|
|
|
* @package WooCommerce/Templates
|
2014-05-30 16:43:21 +00:00
|
|
|
* @version 2.2.0
|
2011-12-09 17:01:56 +00:00
|
|
|
*/
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2012-10-15 10:57:58 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2013-01-02 12:59:36 +00:00
|
|
|
if ( $order ) : ?>
|
2011-12-09 17:01:56 +00:00
|
|
|
|
2014-06-03 09:45:33 +00:00
|
|
|
<?php if ( $order->has_status( 'failed' ) ) : ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2012-10-16 09:45:33 +00:00
|
|
|
<p><?php _e( 'Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction.', 'woocommerce' ); ?></p>
|
2011-12-09 17:01:56 +00:00
|
|
|
|
|
|
|
<p><?php
|
2013-01-02 12:59:36 +00:00
|
|
|
if ( is_user_logged_in() )
|
2012-10-16 09:45:33 +00:00
|
|
|
_e( 'Please attempt your purchase again or go to your account page.', 'woocommerce' );
|
2013-01-02 12:59:36 +00:00
|
|
|
else
|
2012-10-16 09:45:33 +00:00
|
|
|
_e( 'Please attempt your purchase again.', 'woocommerce' );
|
2011-12-09 17:01:56 +00:00
|
|
|
?></p>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2011-12-09 17:01:56 +00:00
|
|
|
<p>
|
2012-10-16 09:45:33 +00:00
|
|
|
<a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>" class="button pay"><?php _e( 'Pay', 'woocommerce' ) ?></a>
|
2013-01-02 12:59:36 +00:00
|
|
|
<?php if ( is_user_logged_in() ) : ?>
|
2013-11-25 14:07:22 +00:00
|
|
|
<a href="<?php echo esc_url( get_permalink( wc_get_page_id( 'myaccount' ) ) ); ?>" class="button pay"><?php _e( 'My Account', 'woocommerce' ); ?></a>
|
2011-12-09 17:01:56 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<?php else : ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2014-04-18 12:33:02 +00:00
|
|
|
<p><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', __( 'Thank you. Your order has been received.', 'woocommerce' ), $order ); ?></p>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2011-12-09 17:01:56 +00:00
|
|
|
<ul class="order_details">
|
|
|
|
<li class="order">
|
2012-10-16 09:45:33 +00:00
|
|
|
<?php _e( 'Order:', 'woocommerce' ); ?>
|
2012-06-20 17:18:16 +00:00
|
|
|
<strong><?php echo $order->get_order_number(); ?></strong>
|
2011-12-09 17:01:56 +00:00
|
|
|
</li>
|
|
|
|
<li class="date">
|
2012-10-16 09:45:33 +00:00
|
|
|
<?php _e( 'Date:', 'woocommerce' ); ?>
|
2013-01-02 12:59:36 +00:00
|
|
|
<strong><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></strong>
|
2011-12-09 17:01:56 +00:00
|
|
|
</li>
|
|
|
|
<li class="total">
|
2012-10-16 09:45:33 +00:00
|
|
|
<?php _e( 'Total:', 'woocommerce' ); ?>
|
2012-04-27 02:22:19 +00:00
|
|
|
<strong><?php echo $order->get_formatted_order_total(); ?></strong>
|
2011-12-09 17:01:56 +00:00
|
|
|
</li>
|
2013-01-02 12:59:36 +00:00
|
|
|
<?php if ( $order->payment_method_title ) : ?>
|
2011-12-09 17:01:56 +00:00
|
|
|
<li class="method">
|
2012-10-16 09:45:33 +00:00
|
|
|
<?php _e( 'Payment method:', 'woocommerce' ); ?>
|
2013-01-02 12:59:36 +00:00
|
|
|
<strong><?php echo $order->payment_method_title; ?></strong>
|
2011-12-09 17:01:56 +00:00
|
|
|
</li>
|
2012-03-05 13:25:02 +00:00
|
|
|
<?php endif; ?>
|
2011-12-09 17:01:56 +00:00
|
|
|
</ul>
|
|
|
|
<div class="clear"></div>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2011-12-09 17:01:56 +00:00
|
|
|
<?php endif; ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2011-12-09 17:01:56 +00:00
|
|
|
<?php do_action( 'woocommerce_thankyou_' . $order->payment_method, $order->id ); ?>
|
|
|
|
<?php do_action( 'woocommerce_thankyou', $order->id ); ?>
|
|
|
|
|
|
|
|
<?php else : ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2014-04-18 12:33:02 +00:00
|
|
|
<p><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', __( 'Thank you. Your order has been received.', 'woocommerce' ), null ); ?></p>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2011-12-09 17:01:56 +00:00
|
|
|
<?php endif; ?>
|