Skip to content

Commit

Permalink
feat: 無條件免運其實是不提供免運的意思
Browse files Browse the repository at this point in the history
  • Loading branch information
j7-dev committed Dec 20, 2024
1 parent c97b0ba commit de0c0e6
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 16 deletions.
3 changes: 0 additions & 3 deletions admin/class-woomp-shipping-flat-rate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion woomp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand Down

0 comments on commit de0c0e6

Please sign in to comment.