Return to shop if session expires

This commit is contained in:
Caleb Burks 2016-05-17 16:52:17 -05:00
parent 3968b0488e
commit b8aea9aff0
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ class WC_Checkout {
do_action( 'woocommerce_before_checkout_process' );
if ( WC()->cart->is_empty() ) {
throw new Exception( sprintf( __( 'Sorry, your session has expired. <a href="%s" class="wc-backward">Return to homepage</a>', 'woocommerce' ), home_url() ) );
throw new Exception( sprintf( __( 'Sorry, your session has expired. <a href="%s" class="wc-backward">Return to shop</a>', 'woocommerce' ), wc_get_page_permalink( 'shop' ) ) );
}
do_action( 'woocommerce_checkout_process' );