mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix the script loading check.
This commit is contained in:
parent
791d0ac1d7
commit
de21866712
1 changed files with 4 additions and 4 deletions
|
@ -1092,9 +1092,9 @@ class SmartButton implements SmartButtonInterface {
|
|||
}
|
||||
if (
|
||||
$this->context() === 'product'
|
||||
&& $this->settings->has( 'button_product_enabled' )
|
||||
&& ( $this->settings->has( 'button_product_enabled' )
|
||||
&& $this->settings->get( 'button_product_enabled' )
|
||||
|| $this->settings->has( 'message_product_enabled' )
|
||||
|| $this->settings->has( 'message_product_enabled' ) )
|
||||
) {
|
||||
$load_buttons = true;
|
||||
}
|
||||
|
@ -1106,9 +1106,9 @@ class SmartButton implements SmartButtonInterface {
|
|||
}
|
||||
if (
|
||||
$this->context() === 'cart'
|
||||
&& $this->settings->has( 'button_cart_enabled' )
|
||||
&& ( $this->settings->has( 'button_cart_enabled' )
|
||||
&& $this->settings->get( 'button_cart_enabled' )
|
||||
|| $this->settings->has( 'message_product_enabled' )
|
||||
|| $this->settings->has( 'message_product_enabled' ) )
|
||||
) {
|
||||
$load_buttons = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue