includes/shipping/free-shipping/class-wc-shipping-free-shipping.php 1 location
|
@@ 108-118 (lines=11) @@
|
| 105 |
|
} |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
if ( in_array( $this->requires, array( 'min_amount', 'either', 'both' ) ) && isset( WC()->cart->cart_contents_total ) ) { |
| 109 |
|
if ( WC()->cart->prices_include_tax ) { |
| 110 |
|
$total = WC()->cart->cart_contents_total + array_sum( WC()->cart->taxes ); |
| 111 |
|
} else { |
| 112 |
|
$total = WC()->cart->cart_contents_total; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
if ( $total >= $this->min_amount ) { |
| 116 |
|
$has_met_min_amount = true; |
| 117 |
|
} |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
switch ( $this->requires ) { |
| 121 |
|
case 'min_amount' : |
includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php 1 location
|
@@ 164-174 (lines=11) @@
|
| 161 |
|
} |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
if ( in_array( $this->requires, array( 'min_amount', 'either', 'both' ) ) && isset( WC()->cart->cart_contents_total ) ) { |
| 165 |
|
if ( WC()->cart->prices_include_tax ) { |
| 166 |
|
$total = WC()->cart->cart_contents_total + array_sum( WC()->cart->taxes ); |
| 167 |
|
} else { |
| 168 |
|
$total = WC()->cart->cart_contents_total; |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
if ( $total >= $this->min_amount ) { |
| 172 |
|
$has_met_min_amount = true; |
| 173 |
|
} |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
switch ( $this->requires ) { |
| 177 |
|
case 'min_amount' : |