Redirect to cart after cart update to prevent reload warnings in browser
This commit is contained in:
parent
b946c532b2
commit
d838539ad1
|
@ -221,7 +221,10 @@ function woocommerce_update_cart_action() {
|
|||
endif;
|
||||
|
||||
$woocommerce->add_message( __('Cart updated.', 'woocommerce') );
|
||||
|
||||
|
||||
wp_safe_redirect( $woocommerce->cart->get_cart_url() );
|
||||
exit;
|
||||
|
||||
endif;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue