Only display notice if Fastlane is disabled

This commit is contained in:
George Burduli 2024-07-16 15:55:59 +04:00
parent e1a93b373d
commit cb9785993f
No known key found for this signature in database
GPG key ID: 572A97DFDA3D2E5C

View file

@ -297,6 +297,14 @@ return array(
static function ( ContainerInterface $container ): string {
$checkout_page_link = esc_url( get_edit_post_link( wc_get_page_id( 'checkout' ) ) ?? '' );
$instructions_link = 'https://woocommerce.com/document/cart-checkout-blocks-status/#using-the-cart-and-checkout-blocks';
$settings = $container->get( 'wcgateway.settings' );
assert( $settings instanceof Settings );
if ( $settings->has( 'axo_enabled' ) && $settings->get( 'axo_enabled' ) ) {
return '';
}
if ( ! CartCheckoutDetector::has_block_checkout() ) {
$notice_content = sprintf(
/* translators: %1$s: URL to the Checkout edit page. %2$s: URL to the WooCommerce Checkout instructions. */