See if this error is breaking e2e
This commit is contained in:
parent
65bbcfee96
commit
3de6d71fc7
|
@ -736,10 +736,6 @@ class WC_Checkout {
|
||||||
$this->validate_posted_data( $data, $errors );
|
$this->validate_posted_data( $data, $errors );
|
||||||
$this->check_cart_items();
|
$this->check_cart_items();
|
||||||
|
|
||||||
if ( empty( $data['woocommerce_checkout_update_totals'] ) && empty( $data['terms'] ) && ! empty( $_POST['terms-field'] ) ) { // WPCS: input var ok, CSRF ok.
|
|
||||||
$errors->add( 'terms', __( 'Please read and accept the terms and conditions to proceed with your order.', 'woocommerce' ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( WC()->cart->needs_shipping() ) {
|
if ( WC()->cart->needs_shipping() ) {
|
||||||
$shipping_country = WC()->customer->get_shipping_country();
|
$shipping_country = WC()->customer->get_shipping_country();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue