2011-12-09 17:01:56 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2012-08-14 18:05:45 +00:00
|
|
|
* Thankyou page
|
|
|
|
*
|
|
|
|
* @author WooThemes
|
|
|
|
* @package WooCommerce/Templates
|
|
|
|
* @version 1.6.4
|
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
|
|
|
|
2012-02-03 16:17:35 +00:00
|
|
|
global $woocommerce;
|
2011-12-09 17:01:56 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
<?php if ($order) : ?>
|
|
|
|
|
|
|
|
<?php if (in_array($order->status, array('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
|
|
|
|
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' );
|
2011-12-09 17:01:56 +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
|
|
|
endif;
|
|
|
|
?></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>
|
2011-12-09 17:01:56 +00:00
|
|
|
<?php if (is_user_logged_in()) : ?>
|
2012-10-16 09:45:33 +00:00
|
|
|
<a href="<?php echo esc_url( get_permalink(woocommerce_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
|
|
|
|
2012-10-16 09:45:33 +00:00
|
|
|
<p><?php _e( 'Thank you. Your order has been received.', 'woocommerce' ); ?></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' ); ?>
|
2012-01-25 15:23:32 +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>
|
2012-03-05 13:25:02 +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' ); ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
<strong><?php
|
2011-12-09 17:01:56 +00:00
|
|
|
echo $order->payment_method_title;
|
|
|
|
?></strong>
|
|
|
|
</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
|
|
|
|
2012-10-16 09:45:33 +00:00
|
|
|
<p><?php _e( 'Thank you. Your order has been received.', 'woocommerce' ); ?></p>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2011-12-09 17:01:56 +00:00
|
|
|
<?php endif; ?>
|