From e1a93b373d0dc2065fc618880aa445421722bfcc Mon Sep 17 00:00:00 2001 From: George Burduli Date: Tue, 16 Jul 2024 15:38:19 +0400 Subject: [PATCH] Fix condition, translation instructions --- modules/ppcp-wc-gateway/services.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 5a5ee4d26..0adc2dbad 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -297,9 +297,9 @@ 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'; - if ( CartCheckoutDetector::has_block_checkout() ) { + if ( ! CartCheckoutDetector::has_block_checkout() ) { $notice_content = sprintf( - /* translators: %1$s: URL to the instructions page. */ + /* translators: %1$s: URL to the Checkout edit page. %2$s: URL to the WooCommerce Checkout instructions. */ __( 'Info: The Checkout page of your store currently uses a classic checkout layout or a custom checkout widget. Advanced Card Processing supports the new Checkout block which improves conversion rates. See this page for instructions on how to upgrade to the new Checkout layout.', 'woocommerce-paypal-payments'