mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Rename button locations
This commit is contained in:
parent
02722a3c97
commit
f40d3602a3
3 changed files with 9 additions and 9 deletions
|
@ -17,8 +17,8 @@ return array(
|
||||||
return array_merge(
|
return array_merge(
|
||||||
$locations,
|
$locations,
|
||||||
array(
|
array(
|
||||||
'checkout-block-express' => _x( 'Block Express Checkout', 'Name of Buttons Location', 'woocommerce-paypal-payments' ),
|
'checkout-block-express' => _x( 'Express Checkout', 'Name of Buttons Location', 'woocommerce-paypal-payments' ),
|
||||||
'cart-block' => _x( 'Block Cart', 'Name of Buttons Location', 'woocommerce-paypal-payments' ),
|
'cart-block' => _x( 'Cart', 'Name of Buttons Location', 'woocommerce-paypal-payments' ),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@ -45,7 +45,7 @@ return array(
|
||||||
'title' => __( 'Require final confirmation on checkout', 'woocommerce-paypal-payments' ),
|
'title' => __( 'Require final confirmation on checkout', 'woocommerce-paypal-payments' ),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __(
|
'label' => __(
|
||||||
'Require customers to confirm express payments from the Block Cart and Block Express Checkout on the checkout page.
|
'Require customers to confirm express payments from the Cart and Express Checkout on the checkout page.
|
||||||
<p class="description">If this setting is not enabled, <a href="https://woocommerce.com/document/woocommerce-paypal-payments/#blocks-faq" target="_blank">payment confirmation on the checkout will be skipped</a>.
|
<p class="description">If this setting is not enabled, <a href="https://woocommerce.com/document/woocommerce-paypal-payments/#blocks-faq" target="_blank">payment confirmation on the checkout will be skipped</a>.
|
||||||
Skipping the final confirmation on the checkout page may impact the buyer experience during the PayPal payment process.</p>',
|
Skipping the final confirmation on the checkout page may impact the buyer experience during the PayPal payment process.</p>',
|
||||||
'woocommerce-paypal-payments'
|
'woocommerce-paypal-payments'
|
||||||
|
|
|
@ -1400,8 +1400,8 @@ return array(
|
||||||
'wcgateway.button.locations' => static function( ContainerInterface $container ): array {
|
'wcgateway.button.locations' => static function( ContainerInterface $container ): array {
|
||||||
return array(
|
return array(
|
||||||
'product' => 'Single Product',
|
'product' => 'Single Product',
|
||||||
'cart' => 'Cart',
|
'cart' => 'Classic Cart',
|
||||||
'checkout' => 'Checkout',
|
'checkout' => 'Classic Checkout',
|
||||||
'mini-cart' => 'Mini Cart',
|
'mini-cart' => 'Mini Cart',
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -40,16 +40,16 @@ class LocationsTest extends ModularTestCase
|
||||||
['product', 'cart', 'checkout', 'mini-cart'],
|
['product', 'cart', 'checkout', 'mini-cart'],
|
||||||
[
|
[
|
||||||
'product' => 'Single Product',
|
'product' => 'Single Product',
|
||||||
'cart' => 'Cart',
|
'cart' => 'Classic Cart',
|
||||||
'checkout' => 'Checkout',
|
'checkout' => 'Classic Checkout',
|
||||||
'mini-cart' => 'Mini Cart',
|
'mini-cart' => 'Mini Cart',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
yield [
|
yield [
|
||||||
['cart', 'checkout'],
|
['cart', 'checkout'],
|
||||||
[
|
[
|
||||||
'cart' => 'Cart',
|
'cart' => 'Classic Cart',
|
||||||
'checkout' => 'Checkout',
|
'checkout' => 'Classic Checkout',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
yield [
|
yield [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue