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