From d09ce7df6fc9c9d4b2f8677b4a12fca09caa2f56 Mon Sep 17 00:00:00 2001 From: Geoffrey K Taylor Date: Wed, 19 Jul 2023 17:16:00 -0400 Subject: [PATCH] fix: Fixed shipping address getting skipped unnecessary (#752) --- includes/data/mutation/class-checkout-mutation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/data/mutation/class-checkout-mutation.php b/includes/data/mutation/class-checkout-mutation.php index 5a7ae58a..e8df39b9 100644 --- a/includes/data/mutation/class-checkout-mutation.php +++ b/includes/data/mutation/class-checkout-mutation.php @@ -44,7 +44,7 @@ public static function is_registration_required() { * @return bool */ protected static function maybe_skip_fieldset( $fieldset_key, $data ) { - if ( 'shipping' === $fieldset_key && ( ! $data['ship_to_different_address'] || ! \WC()->cart->needs_shipping_address() ) ) { + if ( 'shipping' === $fieldset_key && ( ! $data['ship_to_different_address'] && ! \WC()->cart->needs_shipping_address() ) ) { return true; }