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/CalcPercent.php +1 -1 1.4.14 → 1.4.22 View file →
@@ -131,9 +131,9 @@
131 131 * Here no need to check for min and max quantity.
132 132 */
133 133
134 134 if (
135 - $this->discount_intent === 'BuyXGetY'
135 + 'BuyXGetY' === $this->discount_intent
136 136 && ! empty( $rule_ids )
137 137 && (
138 138 in_array( $item_id, $rule_ids, true )
139 139 || $this->is_in_category( $item_id, $rule_ids )