diff --git a/modules/ppcp-axo/extensions.php b/modules/ppcp-axo/extensions.php index fe67bb3d5..9d26cffd5 100644 --- a/modules/ppcp-axo/extensions.php +++ b/modules/ppcp-axo/extensions.php @@ -120,7 +120,6 @@ return array( '', array( $container->get( 'axo.settings-conflict-notice' ), - $container->get( 'axo.shipping-config-notice' ), $container->get( 'axo.checkout-config-notice' ), $container->get( 'axo.incompatible-plugins-notice' ), ) diff --git a/modules/ppcp-axo/services.php b/modules/ppcp-axo/services.php index b860eab15..0519e9209 100644 --- a/modules/ppcp-axo/services.php +++ b/modules/ppcp-axo/services.php @@ -180,13 +180,6 @@ return array( return $settings_notice_generator->generate_checkout_notice(); }, - 'axo.shipping-config-notice' => static function ( ContainerInterface $container ) : string { - $settings_notice_generator = $container->get( 'axo.helpers.settings-notice-generator' ); - assert( $settings_notice_generator instanceof SettingsNoticeGenerator ); - - return $settings_notice_generator->generate_shipping_notice(); - }, - 'axo.incompatible-plugins-notice' => static function ( ContainerInterface $container ) : string { $settings_notice_generator = $container->get( 'axo.helpers.settings-notice-generator' ); assert( $settings_notice_generator instanceof SettingsNoticeGenerator ); diff --git a/modules/ppcp-axo/src/AxoModule.php b/modules/ppcp-axo/src/AxoModule.php index 2b554d1bb..069860550 100644 --- a/modules/ppcp-axo/src/AxoModule.php +++ b/modules/ppcp-axo/src/AxoModule.php @@ -99,10 +99,6 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule { return $methods; } - if ( ! $this->is_compatible_shipping_config() ) { - return $methods; - } - $methods[] = $gateway; return $methods; }, @@ -173,7 +169,7 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule { || ! $c->get( 'axo.eligible' ) || 'continuation' === $c->get( 'button.context' ) || $subscription_helper->cart_contains_subscription() - || ! $this->is_compatible_shipping_config() ) { + ) { return; } @@ -357,7 +353,6 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule { return ! is_user_logged_in() && CartCheckoutDetector::has_classic_checkout() - && $this->is_compatible_shipping_config() && $is_axo_enabled && $is_dcc_enabled && ! $this->is_excluded_endpoint(); @@ -414,15 +409,6 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule { return is_wc_endpoint_url( 'order-pay' ); } - /** - * Condition to evaluate if the shipping configuration is compatible. - * - * @return bool - */ - private function is_compatible_shipping_config(): bool { - return ! wc_shipping_enabled() || ( wc_shipping_enabled() && ! wc_ship_to_billing_address_only() ); - } - /** * Outputs a meta tag to allow feature detection on certain pages. * diff --git a/modules/ppcp-axo/src/Helper/SettingsNoticeGenerator.php b/modules/ppcp-axo/src/Helper/SettingsNoticeGenerator.php index d4d4cb824..aec8848a0 100644 --- a/modules/ppcp-axo/src/Helper/SettingsNoticeGenerator.php +++ b/modules/ppcp-axo/src/Helper/SettingsNoticeGenerator.php @@ -103,30 +103,6 @@ class SettingsNoticeGenerator { return $notice_content ? '
' . $notice_content . '
Force shipping to the customer billing address
. To enable Fastlane and accelerate payments, the shipping destination must be configured either to Default to customer shipping address
or Default to customer billing address
so buyers can set separate billing and shipping details.',
- 'woocommerce-paypal-payments'
- ),
- esc_url( $shipping_settings_link )
- );
- }
-
- return $notice_content ? '' . $notice_content . '