Return to shop if session expires
This commit is contained in:
parent
3968b0488e
commit
b8aea9aff0
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue