Redirect to cart after cart update to prevent reload warnings in browser

This commit is contained in:
Geert De Deckere 2012-02-15 16:54:18 +01:00
parent b946c532b2
commit d838539ad1
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}