mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Force final confirmation grayed out when subscription plugin is active
This commit is contained in:
parent
d787e2e85d
commit
cd8bfbec2f
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,8 @@ return array(
|
|||
);
|
||||
}
|
||||
|
||||
$subscription_helper = $container->get( 'wc-subscriptions.helper' );
|
||||
|
||||
return $insert_after(
|
||||
$fields,
|
||||
'smart_button_locations',
|
||||
|
@ -63,6 +65,8 @@ return array(
|
|||
'screens' => array( State::STATE_START, State::STATE_ONBOARDED ),
|
||||
'requirements' => array(),
|
||||
'gateway' => 'paypal',
|
||||
'class' => array( 'ppcp-grayed-out-text' ),
|
||||
'input_class' => $subscription_helper->plugin_is_active() ? array( 'ppcp-disabled-checkbox' ) : array(),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue