Add woocommerce_checkout_skip_update_order_review_expired and woocommerce_checkout_skip_cart_is_empty_check filter calls.
This commit is contained in:
parent
a07135ce9e
commit
f7ec8c22de
|
@ -273,7 +273,7 @@ class WC_AJAX {
|
||||||
|
|
||||||
wc_maybe_define_constant( 'WOOCOMMERCE_CHECKOUT', true );
|
wc_maybe_define_constant( 'WOOCOMMERCE_CHECKOUT', true );
|
||||||
|
|
||||||
if ( WC()->cart->is_empty() ) {
|
if ( WC()->cart->is_empty() && !apply_filters( 'woocommerce_checkout_skip_update_order_review_expired', false ) ) {
|
||||||
self::update_order_review_expired();
|
self::update_order_review_expired();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -222,7 +222,7 @@ class WC_Shortcode_Checkout {
|
||||||
wc_print_notices();
|
wc_print_notices();
|
||||||
|
|
||||||
// Check cart has contents.
|
// Check cart has contents.
|
||||||
if ( WC()->cart->is_empty() ) {
|
if ( WC()->cart->is_empty() && !apply_filters( 'woocommerce_checkout_skip_cart_is_empty_check', false ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue