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

View file

@ -295,9 +295,6 @@ return array(
},
'wcgateway.notice.checkout-blocks' =>
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 );
@ -305,6 +302,9 @@ return array(
return '';
}
$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() ) {
$notice_content = sprintf(
/* translators: %1$s: URL to the Checkout edit page. %2$s: URL to the WooCommerce Checkout instructions. */