| @@ -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 ] ) ) { |