|
@@ 896-898 (lines=3) @@
|
| 893 |
|
* @throws Exception |
| 894 |
|
*/ |
| 895 |
|
private function validate_minimum_amount() { |
| 896 |
|
if ( $this->get_minimum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_minimum_amount', $this->get_minimum_amount() > WC()->cart->get_displayed_subtotal(), $this ) ) { |
| 897 |
|
throw new Exception( self::E_WC_COUPON_MIN_SPEND_LIMIT_NOT_MET ); |
| 898 |
|
} |
| 899 |
|
} |
| 900 |
|
|
| 901 |
|
/** |
|
@@ 907-909 (lines=3) @@
|
| 904 |
|
* @throws Exception |
| 905 |
|
*/ |
| 906 |
|
private function validate_maximum_amount() { |
| 907 |
|
if ( $this->get_maximum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_maximum_amount', $this->get_maximum_amount() < WC()->cart->get_displayed_subtotal(), $this ) ) { |
| 908 |
|
throw new Exception( self::E_WC_COUPON_MAX_SPEND_LIMIT_MET ); |
| 909 |
|
} |
| 910 |
|
} |
| 911 |
|
|
| 912 |
|
/** |