mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Use "Pay now" label only if no review
This commit is contained in:
parent
b478d9adaa
commit
694aafd346
1 changed files with 1 additions and 2 deletions
|
@ -60,9 +60,8 @@ If disabled, the Checkout page is skipped for Block Express payments.
|
|||
},
|
||||
|
||||
'button.pay-now-contexts' => function ( ContainerInterface $container, array $contexts ): array {
|
||||
$contexts[] = 'checkout-block';
|
||||
|
||||
if ( ! $container->get( 'blocks.settings.final_review_enabled' ) ) {
|
||||
$contexts[] = 'checkout-block';
|
||||
$contexts[] = 'cart-block';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue