Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Preconditions
Tested on this versions:
Description
When the MSI module is disabled, and we set the cart price rule (add a gift) without a specific coupon code, we can't add a product to the cart when the subtotal is more than the rule price. If we set a rule with a specific coupon code, we are unable to apply that coupon code, and it gives an error (see screenshot 3)
Steps to Reproduce
6.observe.
Actual Result
The cart price rule should not be applied without the MSI module.
Expected Result
The cart price rule should be applied with or without the MSI module
Reason
This issue occurs when the MSI module is disabled. At that time, it is not compatible with the functionality in the module. They use the MSI class, and when that module is disabled, it should not run and creates an issue