| @@ -77,9 +77,9 @@ | ||
| 77 | 77 | if ( isset( $this->item['disco_forced_qty'] ) ) { |
| 78 | 78 | $forced = max( 0, (int) $this->item['disco_forced_qty'] ); |
| 79 | 79 | $this->discounted_quantities = $forced; |
| 80 | 80 | |
| 81 | - return $forced > 0 ? (float) $fixed_discount : 0; | |
| 81 | + return apply_filters( 'disco_final_discounted_amount', $forced > 0 ? (float) $fixed_discount : 0, 'fixed_price' ); | |
| 82 | 82 | } |
| 83 | 83 | $min = $this->rule['min'] ? (int) $this->rule['min'] : 0; // phpcs:ignore |
| 84 | 84 | $max = $this->rule['max'] ? (int) $this->rule['max'] : 0; // phpcs:ignore |
| 85 | 85 | $recursive = isset( $this->rule['recursive'] ) && 'yes' === $this->rule['recursive']; // phpcs:ignore |
| @@ -103,9 +103,9 @@ | ||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | $this->discounted_quantities = $discount_for_quantities; |
| 106 | 106 | |
| 107 | - return $discount_amount; | |
| 107 | + return apply_filters( 'disco_final_discounted_amount', $discount_amount, 'fixed_price' ); | |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * Calculate Price. |