PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.22
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.22
1.4.22 1.4.21 1.4.20 1.4.19 1.4.18 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 All 185 releases
← All changes | app/Intents/CartIntent.php +1 -1 1.4.19 → 1.4.22 View file →
@@ -75,9 +75,9 @@
75 75 // $cost = $this->get_items_subtotal( $items );
76 76 $cost = $this->get_items_subtotal_based_on_settings( $items );
77 77
78 78 // Discount should be less than item price
79 - if ( $discount_type === 'fixed_per_product' ) {
79 + if ( 'fixed_per_product' === $discount_type ) {
80 80 // TODO: Check there is no free products in the cart before counting the discount
81 81 $item_prices = array();
82 82
83 83 foreach ( $items as $item ) {