mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
Only display notice if Fastlane is disabled
This commit is contained in:
parent
e1a93b373d
commit
cb9785993f
1 changed files with 8 additions and 0 deletions
|
@ -297,6 +297,14 @@ return array(
|
||||||
static function ( ContainerInterface $container ): string {
|
static function ( ContainerInterface $container ): string {
|
||||||
$checkout_page_link = esc_url( get_edit_post_link( wc_get_page_id( 'checkout' ) ) ?? '' );
|
$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';
|
$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() ) {
|
if ( ! CartCheckoutDetector::has_block_checkout() ) {
|
||||||
$notice_content = sprintf(
|
$notice_content = sprintf(
|
||||||
/* translators: %1$s: URL to the Checkout edit page. %2$s: URL to the WooCommerce Checkout instructions. */
|
/* translators: %1$s: URL to the Checkout edit page. %2$s: URL to the WooCommerce Checkout instructions. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue