Discount Code Application
Verify the complete discount code lifecycle including admin creation, various discount types (percentage/fixed), conditions (min amount, usage limits), and validation of expired/invalid codes.
Preconditions
- You have admin access to the store
- Store has products with sufficient stock
Test Data
Create test codes: "TEST10PCT" (10% off), "TEST500" (500 fixed off), "MINSPEND" (10% off, min 5000), "ONEUSE" (20% off, 1 use limit), "EXPIRED" (any discount, past end date)Test Steps
Follow each step carefully
In store admin, navigate to Discounts/Coupons section and create a new percentage discount
Admin sidebar > Marketing > Discounts > "Create Discount"
Discount creation form loads
Create a 10% percentage discount code (e.g., "TEST10PCT") with no restrictions
Enter code, select "Percentage" type, enter 10, leave other fields empty/default
Discount is saved and appears in discount list
Create a fixed amount discount code (e.g., "TEST500" for 500 off)
Select "Fixed amount" type, enter 500
Fixed discount is created successfully
Create a discount with minimum order amount requirement
Enter minimum_order_amount (e.g., 5000)
Discount with minimum spend requirement is created
Create a discount with usage limit (e.g., max 1 use)
Enter usage_limit (e.g., 1)
Limited-use discount is created
On storefront, add products to cart totaling at least the minimum amount for testing
Add products worth 5000+ to test minimum spend discount
Cart has sufficient items for testing all discount scenarios
Apply the percentage discount code at checkout
Enter "TEST10PCT" in discount field
Discount is applied; discount amount shown is exactly 10% of eligible subtotal
Remove and apply the fixed amount discount code
Remove current discount, enter "TEST500"
Fixed discount of exactly 500 is applied to total
Test minimum spend restriction: reduce cart below minimum and apply minimum-spend discount
Remove items to get below 5000, try applying "MINSPEND" code
Error message appears indicating minimum spend not met (e.g., "Minimum order of 5000 required")
Test expired/invalid code by entering a non-existent or expired code
Enter "INVALIDCODE123" or an expired code
Error message appears indicating code is invalid, expired, or does not exist
Complete an order using the limited-use discount, then try to use it again
Checkout with "ONEUSE" code, then start new order and try same code
First use succeeds; second attempt shows error that code usage limit reached
Expected Result
Discount code system works: (1) Percentage discounts calculate correct percentage of subtotal, (2) Fixed discounts reduce total by exact amount, (3) Minimum spend requirements are enforced with clear error messages, (4) Usage limits are tracked and enforced, (5) Expired codes are rejected, (6) Invalid codes show appropriate error, (7) Discount appears in order confirmation and admin order details.
Ready to Complete?
Click when you have verified all steps and the expected result.
Test Info
- Module
- Orders
- Steps
- 11
- Duration
- 8 min
- XP Value
- +30