From 89aa1324c92e0a8a5aae4b6ae5f160a9b1df2137 Mon Sep 17 00:00:00 2001 From: misulicus Date: Wed, 16 Apr 2014 23:34:56 +0300 Subject: [PATCH] no transaction change transaction results message For issue #1082 --- .../functions/wpsc-transaction_results_functions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wpsc-components/theme-engine-v1/templates/functions/wpsc-transaction_results_functions.php b/wpsc-components/theme-engine-v1/templates/functions/wpsc-transaction_results_functions.php index 2c8d6b2126..ff920a55ec 100644 --- a/wpsc-components/theme-engine-v1/templates/functions/wpsc-transaction_results_functions.php +++ b/wpsc-components/theme-engine-v1/templates/functions/wpsc-transaction_results_functions.php @@ -119,7 +119,8 @@ function wpsc_transaction_theme() { if ( !empty($sessionid) ){ $cart_log_id = $wpdb->get_var( $wpdb->prepare( "SELECT `id` FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `sessionid`= %s LIMIT 1", $sessionid ) ); return transaction_results( $sessionid, true ); - }else - printf( __( 'Sorry your transaction was not accepted.
Click here to go back to checkout page.', 'wpsc' ), get_option( "shopping_cart_url" ) ); + } else { + printf( __( 'There have not been any purchases yet.
Click here to go back to checkout page.', 'wpsc' ), get_option( "shopping_cart_url" ) ); + } } -} \ No newline at end of file +}