/woocommerce/checkout/thankyou.php

  1. <?php 
  2. /** 
  3. * Thankyou page 
  4. * 
  5. * @author WooThemes 
  6. * @package WooCommerce/Templates 
  7. * @version 3.0.0 
  8. */ 
  9. if (!defined('ABSPATH')) 
  10. exit; // Exit if accessed directly 
  11.  
  12. if ($order) : 
  13.  
  14. if ( $order->has_status( 'failed' ) ) : 
  15. ?> 
  16.  
  17. <p><?php _e('Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction.', 'evolve'); ?></p> 
  18.  
  19. <p><?php 
  20. if (is_user_logged_in()) 
  21. _e('Please attempt your purchase again or go to your account page.', 'evolve'); 
  22. else 
  23. _e('Please attempt your purchase again.', 'evolve'); 
  24. ?></p> 
  25.  
  26. <p> 
  27. <a href="<?php echo esc_url($order->get_checkout_payment_url()); ?>" class="button pay"><?php _e('Pay', 'evolve') ?></a> 
  28. <?php if (is_user_logged_in()) : ?> 
  29. <a href="<?php echo esc_url(get_permalink(wc_get_page_id('myaccount'))); ?>" class="button pay"><?php _e('My Account', 'evolve'); ?></a> 
  30. <?php endif; ?> 
  31. </p> 
  32.  
  33. <?php else : ?> 
  34.  
  35. <p><?php echo apply_filters('woocommerce_thankyou_order_received_text', __('Thank you. Your order has been received.', 'evolve'), $order); ?></p> 
  36.  
  37. <ul class="order_details"> 
  38. <li class="order"> 
  39. <?php _e('Order:', 'evolve'); ?> 
  40. <strong><?php echo $order->get_order_number(); ?></strong> 
  41. </li> 
  42. <li class="date"> 
  43. <?php _e('Date:', 'evolve'); ?> 
  44. <strong><?php echo wc_format_datetime( $order->get_date_created() ); ?></strong> 
  45. </li> 
  46. <li class="total"> 
  47. <?php _e('Total:', 'evolve'); ?> 
  48. <strong><?php echo $order->get_formatted_order_total(); ?></strong> 
  49. </li> 
  50. <?php if ( $order->get_payment_method_title() ) : ?> 
  51. <li class="method"> 
  52. <?php _e('Payment method:', 'evolve'); ?> 
  53. <strong><?php echo wp_kses_post( $order->get_payment_method_title() ); ?></strong> 
  54. </li> 
  55. <?php endif; ?> 
  56. </ul> 
  57. <div class="clear"></div> 
  58.  
  59. <?php 
  60. endif; 
  61.  
  62. do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() ); 
  63. do_action( 'woocommerce_thankyou', $order->get_id() ); 
  64.  
  65. else : 
  66. ?> 
  67.  
  68. <p><?php echo apply_filters('woocommerce_thankyou_order_received_text', __('Thank you. Your order has been received.', 'evolve'), null); ?></p> 
  69.  
  70. <?php endif; 
.