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/Disco.php +1 -1 1.4.21 → 1.4.22 View file →
@@ -264,9 +264,9 @@
264 264 foreach ( $cart->get_cart() as $item ) {
265 265 $id = $this->get_cart_item_id( $item );
266 266
267 267 // Skip all others if BOGO + category item is found
268 - if ( $found_bogo_category_item_id !== null && $id !== $found_bogo_category_item_id ) {
268 + if ( null !== $found_bogo_category_item_id && $id !== $found_bogo_category_item_id ) {
269 269 continue;
270 270 }
271 271
272 272 if ( empty( $discounts[ $id ] ) ) {