mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Use the cart price calculating method inside the handler.
This commit is contained in:
parent
f46341466f
commit
515a06542e
1 changed files with 3 additions and 3 deletions
|
@ -361,11 +361,11 @@ class SmartButton implements SmartButtonInterface {
|
|||
) {
|
||||
add_action(
|
||||
$this->mini_cart_button_renderer_hook(),
|
||||
static function () {
|
||||
// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
|
||||
if ( WC()->cart->get_cart_contents_total() == 0 ) {
|
||||
function () {
|
||||
if ( $this->is_cart_price_total_zero() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
echo '<p
|
||||
id="ppc-button-minicart"
|
||||
class="woocommerce-mini-cart__buttons buttons"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue