Back to Orders
HIGHHappy Path

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.

11 steps
~8 min
order-4

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

0/11

In store admin, navigate to Discounts/Coupons section and create a new percentage discount

Location

Admin sidebar > Marketing > Discounts > "Create Discount"

Verify

Discount creation form loads

Create a 10% percentage discount code (e.g., "TEST10PCT") with no restrictions

Location

Enter code, select "Percentage" type, enter 10, leave other fields empty/default

Verify

Discount is saved and appears in discount list

Create a fixed amount discount code (e.g., "TEST500" for 500 off)

Location

Select "Fixed amount" type, enter 500

Verify

Fixed discount is created successfully

Create a discount with minimum order amount requirement

Location

Enter minimum_order_amount (e.g., 5000)

Verify

Discount with minimum spend requirement is created

Create a discount with usage limit (e.g., max 1 use)

Location

Enter usage_limit (e.g., 1)

Verify

Limited-use discount is created

On storefront, add products to cart totaling at least the minimum amount for testing

Location

Add products worth 5000+ to test minimum spend discount

Verify

Cart has sufficient items for testing all discount scenarios

Apply the percentage discount code at checkout

Location

Enter "TEST10PCT" in discount field

Verify

Discount is applied; discount amount shown is exactly 10% of eligible subtotal

Remove and apply the fixed amount discount code

Location

Remove current discount, enter "TEST500"

Verify

Fixed discount of exactly 500 is applied to total

Test minimum spend restriction: reduce cart below minimum and apply minimum-spend discount

Location

Remove items to get below 5000, try applying "MINSPEND" code

Verify

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

Location

Enter "INVALIDCODE123" or an expired code

Verify

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

Location

Checkout with "ONEUSE" code, then start new order and try same code

Verify

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