Fix GooglePay notices.

This commit is contained in:
Pedro Silva 2023-10-16 17:06:55 +01:00
parent 5233e9caf6
commit 8847cbbd21
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
3 changed files with 4 additions and 4 deletions

View file

@ -57,7 +57,7 @@ return array(
if ( ! $is_available && $is_referral ) {
$connection_url = admin_url( 'admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway&ppcp-tab=ppcp-connection#field-credentials_feature_onboarding_heading' );
$connection_link = '<a href="' . $connection_url . '" target="_blank">';
$connection_link = '<a href="' . $connection_url . '" style="pointer-events: auto">';
return $insert_after(
$fields,
'allow_card_button_gateway',

View file

@ -59,7 +59,7 @@ return array(
if ( ! $is_available && $is_referral ) {
$connection_url = admin_url( 'admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway&ppcp-tab=ppcp-connection#field-credentials_feature_onboarding_heading' );
$connection_link = '<a href="' . $connection_url . '" target="_blank">';
$connection_link = '<a href="' . $connection_url . '" style="pointer-events: auto">';
return $insert_after(
$fields,
'allow_card_button_gateway',

View file

@ -110,13 +110,13 @@ class AvailabilityNotice {
$message = sprintf(
__(
'<p>There was an error getting your PayPal seller status. Some features may be disabled.</p><p>Certify that you connected to your PayPal business account via our onboarding process.</p>',
'<p>Notice: We could not determine your PayPal seller status to list your available features. Disconnect and reconnect your PayPal account through our onboarding process to resolve this.</p><p>Don\'t worry if you cannot use the onboarding process; most functionalities available to your account should work.</p>',
'woocommerce-paypal-payments'
)
);
// Name the key so it can be overridden in other modules.
$notices['error_product_status'] = new Message( $message, 'error', true, 'ppcp-notice-wrapper' );
$notices['error_product_status'] = new Message( $message, 'warning', true, 'ppcp-notice-wrapper' );
return $notices;
}
);