-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SalesRuleValidator and ValidateByToken for Coupon Code Validation
- Changed the parameter type of `SalesRuleValidator::isValid` method from `string` to `array` to handle multiple coupon codes. - Modified the `SalesRuleValidator::isValid` method to validate against an array of coupon codes using `in_array`. - Updated `ValidateByToken` plugin to pass the coupon code as an array instead of casting it to a string. These changes enhance the validation process by allowing multiple coupon codes to be checked, ensuring greater flexibility and accuracy.
- Loading branch information
1 parent
3f79a71
commit 3767494
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters