PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.16
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.16
1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 1.3.51 1.3.50 1.3.49 1.3.48 All 180 releases
← All changes | app/Calc/CalcFixedPrice.php +2 -2 1.4.141.4.16 View file →
@@ -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.