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/Calc/CalcFixed.php +1 -1 1.4.20 → 1.4.22 View file →
@@ -129,9 +129,9 @@
129 129 * This is to ensure that the discount for selected item for BOGO discount.
130 130 * Here no need to check for min and max quantity.
131 131 */
132 132 if (
133 - $this->discount_intent === 'BuyXGetY'
133 + 'BuyXGetY' === $this->discount_intent
134 134 && ! empty( $rule_ids )
135 135 && (
136 136 in_array( $item_id, $rule_ids, true )
137 137 || $this->is_in_category( $item_id, $rule_ids )