Skip to content

Commit

Permalink
Modify notice string
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Nov 7, 2024
1 parent edf253f commit 3bdd88b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/PaymentMethods/Applepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,20 @@ protected function getConfig(): array

public function getFormFields($generalFormFields): array
{

$checkout_page_id = wc_get_page_id( 'checkout' );
$edit_checkout_page_link = get_edit_post_link( $checkout_page_id );

$notice = [
'notice' => [
'title' =>

'title' => sprintf(
/* translators: Placeholder 1: link url */
__(
'<p>Important: The Cart & Express Checkout Smart Button Stylings may be controlled in the Editor on the Block Checkout configuration.</p>',
'<p>The appearance of the Apple Pay button can be controlled in the <a href="%1$s">Checkout page editor</a>.</p>',
'mollie-payments-for-woocommerce'
),
esc_url( $edit_checkout_page_link )
),
'type' => 'title',
'class' => 'notice notice-warning',
'css' => 'padding:20px;',
Expand Down

0 comments on commit 3bdd88b

Please sign in to comment.