PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.17
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.17
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/Intents/CartIntent.php +2 -2 1.3.501.4.17 View file →
@@ -44,9 +44,10 @@
44 44 * @throws \Exception If settings not found.
45 45 */
46 46 public function get_discounts( $items, $cart ) { // phpcs:ignore
47 47
48 - $discount = 0;
48 + $discount = 0;
49 + $discount_type = '';
49 50
50 51 if ( empty( $items ) ) {
51 52 return $discount;
52 53 }
@@ -91,9 +92,8 @@
91 92 $discount = $this->calculate_discount( $cost, $discount_type, $discount_value );
92 93 }
93 94 }
94 95
95 - // @phpstan-ignore-next-line
96 96 return apply_filters( 'disco_final_discounted_amount', $discount, $discount_type );
97 97 }
98 98
99 99