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