mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix messaging display when the buttons are disabled.
This commit is contained in:
parent
635236c37f
commit
20c3c6e345
1 changed files with 3 additions and 1 deletions
|
@ -1037,6 +1037,7 @@ class SmartButton implements SmartButtonInterface {
|
||||||
$this->context() === 'product'
|
$this->context() === 'product'
|
||||||
&& $this->settings->has( 'button_product_enabled' )
|
&& $this->settings->has( 'button_product_enabled' )
|
||||||
&& $this->settings->get( 'button_product_enabled' )
|
&& $this->settings->get( 'button_product_enabled' )
|
||||||
|
|| $this->settings->has( 'message_product_enabled' )
|
||||||
) {
|
) {
|
||||||
$load_buttons = true;
|
$load_buttons = true;
|
||||||
}
|
}
|
||||||
|
@ -1050,6 +1051,7 @@ class SmartButton implements SmartButtonInterface {
|
||||||
$this->context() === 'cart'
|
$this->context() === 'cart'
|
||||||
&& $this->settings->has( 'button_cart_enabled' )
|
&& $this->settings->has( 'button_cart_enabled' )
|
||||||
&& $this->settings->get( 'button_cart_enabled' )
|
&& $this->settings->get( 'button_cart_enabled' )
|
||||||
|
|| $this->settings->has( 'message_product_enabled' )
|
||||||
) {
|
) {
|
||||||
$load_buttons = true;
|
$load_buttons = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue