From de0c0e680f87d046b4b22f2cf580dd1a1a4f2500 Mon Sep 17 00:00:00 2001 From: J7 Date: Fri, 20 Dec 2024 18:58:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=84=A1=E6=A2=9D=E4=BB=B6=E5=85=8D?= =?UTF-8?q?=E9=81=8B=E5=85=B6=E5=AF=A6=E6=98=AF=E4=B8=8D=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E5=85=8D=E9=81=8B=E7=9A=84=E6=84=8F=E6=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/class-woomp-shipping-flat-rate.php | 3 --- .../includes/shippings/abstract-paynow-shipping.php | 3 --- .../shipping/ecpay/includes/ecpay-shipping-base.php | 3 --- .../woocommerce/shipping/newebpay/newebpay-shipping-cvs.php | 3 --- .../shipping/smilepay/includes/smilepay-shipping-base.php | 3 --- woomp.php | 2 +- 6 files changed, 1 insertion(+), 16 deletions(-) diff --git a/admin/class-woomp-shipping-flat-rate.php b/admin/class-woomp-shipping-flat-rate.php index 02e6dbb..21e4f6f 100644 --- a/admin/class-woomp-shipping-flat-rate.php +++ b/admin/class-woomp-shipping-flat-rate.php @@ -316,9 +316,6 @@ public function calculate_shipping( $package = [] ) { case 'min_amount_and_coupon': $set_cost_zero = $has_min_amount && $has_coupon; break; - case '': - $set_cost_zero =true; - break; default: $set_cost_zero = false; break; diff --git a/includes/paynow-shipping/includes/shippings/abstract-paynow-shipping.php b/includes/paynow-shipping/includes/shippings/abstract-paynow-shipping.php index 6242aaf..d64a42e 100755 --- a/includes/paynow-shipping/includes/shippings/abstract-paynow-shipping.php +++ b/includes/paynow-shipping/includes/shippings/abstract-paynow-shipping.php @@ -161,9 +161,6 @@ public function calculate_shipping( $package = [] ) { case 'both': $set_cost_zero = $has_min_amount && $has_coupon; break; - case '': - $set_cost_zero = true; - break; default: $set_cost_zero = false; break; diff --git a/includes/ry-woocommerce-tools/woocommerce/shipping/ecpay/includes/ecpay-shipping-base.php b/includes/ry-woocommerce-tools/woocommerce/shipping/ecpay/includes/ecpay-shipping-base.php index a8459f5..d311f61 100644 --- a/includes/ry-woocommerce-tools/woocommerce/shipping/ecpay/includes/ecpay-shipping-base.php +++ b/includes/ry-woocommerce-tools/woocommerce/shipping/ecpay/includes/ecpay-shipping-base.php @@ -97,9 +97,6 @@ public function calculate_shipping( $package = [] ) { case 'both': $set_cost_zero = $has_min_amount && $has_coupon; break; - case '': - $set_cost_zero = true; - break; default: $set_cost_zero = false; break; diff --git a/includes/ry-woocommerce-tools/woocommerce/shipping/newebpay/newebpay-shipping-cvs.php b/includes/ry-woocommerce-tools/woocommerce/shipping/newebpay/newebpay-shipping-cvs.php index 41a9110..a725b74 100644 --- a/includes/ry-woocommerce-tools/woocommerce/shipping/newebpay/newebpay-shipping-cvs.php +++ b/includes/ry-woocommerce-tools/woocommerce/shipping/newebpay/newebpay-shipping-cvs.php @@ -150,9 +150,6 @@ public function calculate_shipping( $package = [] ) { case 'both': $set_cost_zero = $has_min_amount && $has_coupon; break; - case '': - $set_cost_zero = true; - break; default: $set_cost_zero = false; break; diff --git a/includes/ry-woocommerce-tools/woocommerce/shipping/smilepay/includes/smilepay-shipping-base.php b/includes/ry-woocommerce-tools/woocommerce/shipping/smilepay/includes/smilepay-shipping-base.php index 92a4bcb..2e5a658 100644 --- a/includes/ry-woocommerce-tools/woocommerce/shipping/smilepay/includes/smilepay-shipping-base.php +++ b/includes/ry-woocommerce-tools/woocommerce/shipping/smilepay/includes/smilepay-shipping-base.php @@ -116,9 +116,6 @@ public function calculate_shipping( $package = [] ) { case 'min_amount_and_coupon': $set_cost_zero = $has_min_amount && $has_coupon; break; - case '': - $set_cost_zero = true; - break; default: $set_cost_zero = false; break; diff --git a/woomp.php b/woomp.php index ea707c0..cc2c042 100644 --- a/woomp.php +++ b/woomp.php @@ -4,7 +4,7 @@ * Plugin Name: 好用版擴充 MorePower Addon for WooCommerce * Plugin URI: https://morepower.club/morepower-addon/ * Description: WooCommerce 好用版擴充,改善結帳流程與可變商品等區塊,並整合多項金流,讓 WooCommerce 更符合亞洲人使用習慣。 - * Version: 3.4.49 + * Version: 3.4.50 * Author: MorePower * Author URI: https://morepower.club * License: GPL-2.0+