Fix condition, translation instructions

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

View file

@ -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. */
__(
'<span class="highlight">Info:</span> The <a href="%1$s">Checkout page</a> of your store currently uses a classic checkout layout or a custom checkout widget. Advanced Card Processing supports the new <code>Checkout</code> block which improves conversion rates. See <a href="%2$s">this page</a> for instructions on how to upgrade to the new Checkout layout.',
'woocommerce-paypal-payments'