From b1cd6b26f3c773bdf0b3a6fee241398aecfb292b Mon Sep 17 00:00:00 2001 From: Lucas Gama Date: Wed, 6 Mar 2024 10:01:28 -0300 Subject: [PATCH] =?UTF-8?q?fix:corre=C3=A7=C3=A3o=20na=20l=C3=B3gica=20de?= =?UTF-8?q?=20verifica=C3=A7=C3=A3o=20do=20carrinho=20para=20retornar=20ve?= =?UTF-8?q?rdadeiro=20se=20o=20total=20do=20carrinho=20for=200=20ou=20se?= =?UTF-8?q?=20o=20carrinho=20tiver=20um=20teste?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/VindiWoocommerce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VindiWoocommerce.php b/src/VindiWoocommerce.php index 95c9cc51..fdb115fa 100644 --- a/src/VindiWoocommerce.php +++ b/src/VindiWoocommerce.php @@ -193,7 +193,7 @@ public function add_gateway($methods) */ public function filter_woocommerce_cart_needs_payment($needs_payment, $cart) { - if (floatval($cart->total) == 0 && $this->cart_has_trial($cart)) { + if (floatval($cart->total) == 0 || $this->cart_has_trial($cart)) { return true; }