mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Merge pull request #692 from woocommerce/PCP-199-pay-later-messaging-only-display-with-smart-buttons
Fix messaging display when the buttons are disabled.
This commit is contained in:
commit
37458baed5
1 changed files with 2 additions and 0 deletions
|
@ -1051,6 +1051,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
$this->context() === 'product'
|
||||
&& $this->settings->has( 'button_product_enabled' )
|
||||
&& $this->settings->get( 'button_product_enabled' )
|
||||
|| $this->settings->has( 'message_product_enabled' )
|
||||
) {
|
||||
$load_buttons = true;
|
||||
}
|
||||
|
@ -1064,6 +1065,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
$this->context() === 'cart'
|
||||
&& $this->settings->has( 'button_cart_enabled' )
|
||||
&& $this->settings->get( 'button_cart_enabled' )
|
||||
|| $this->settings->has( 'message_product_enabled' )
|
||||
) {
|
||||
$load_buttons = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue