-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1.4
-
Fix Version/s: 2.1.0
-
Component/s: Digital Merchandise Management → Discounts
-
Labels:None
-
Git Pull Request:
Steps to Reproduce
- Create a new user
- Create a Breccia site for convenience
- Go to Commerce → Discounts
- Create a new entry
- Type a name
- Select "Apply to Total" as type
- Select User as User Segment
- Flag "Use Coupon Code"
- Type a Code
- Unflag "Percentage"
- Type an amount (e.g. 1)
- Flag "Active"
- Publish
- Log in as a non-admin user
- Go to Catalog
- Add to cart a product which price is lower than $ 1.00 (SKU 1101667 - $ 0.73)
- Go to the mini cart → Edit Cart
- Enter the promo code inserted at point 8
- Click Apply
Expected Behavior
The Total should be 0 or greater
Actual Behavior
Since it's permitted to create a discount without defining a Rule, as you can see from the screenshot, the cart amount after applying the discount is $ -0.27.