parent
7bd996f45e
commit
5440a45587
|
@ -538,7 +538,7 @@ class WC_Form_Handler {
|
|||
exit;
|
||||
} elseif ( $cart_updated ) {
|
||||
wc_add_notice( __( 'Cart updated.', 'woocommerce' ) );
|
||||
$referer = remove_query_arg( 'remove_coupon', ( wp_get_referer() ? wp_get_referer() : wc_get_cart_url() ) );
|
||||
$referer = remove_query_arg( array( 'remove_coupon', 'add-to-cart' ), ( wp_get_referer() ? wp_get_referer() : wc_get_cart_url() ) );
|
||||
wp_safe_redirect( $referer );
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue