shortcode_wrapper('woocommerce_thankyou', $atts); } /** * Outputs the thankyou page **/ function woocommerce_thankyou() { global $woocommerce; _e('
Thank you. Your order has been processed successfully.
', 'woothemes'); // Pay for order after checkout step if (isset($_GET['order'])) $order_id = $_GET['order']; else $order_id = 0; if (isset($_GET['key'])) $order_key = $_GET['key']; else $order_key = ''; // Empty awaiting payment session unset($_SESSION['order_awaiting_payment']); if ($order_id > 0) : $order = &new woocommerce_order( $order_id ); if ($order->order_key == $order_key) : ?>