Order Cancellation
Verify that orders can be cancelled with proper status updates, optional inventory restoration, and customer notification.
Preconditions
- You are logged in as store admin/owner
- At least one order exists in cancellable state (PENDING or CONFIRMED, not shipped)
Test Data
Cancellation reason: "Customer requested cancellation" or "Out of stock"Test Steps
Follow each step carefully
Navigate to Orders in store admin
Admin sidebar > Orders
Orders list is displayed
Find an order with PENDING or CONFIRMED status (not shipped) and click to view
Filter by status, click order row
Order detail page opens
Note the current inventory levels for ordered products
Check product inventory in Products section or note from order
You know current stock levels to verify restoration later
This step helps verify inventory restoration
Click "Cancel Order" button
Cancel button in order actions, may be in a dropdown menu or action bar
Cancellation form/modal opens
Enter a cancellation reason
Text field or dropdown with common reasons
Reason is entered/selected
Check the "Restock items" option if available (to restore inventory)
Checkbox like "Restock items" or "Restore inventory"
Restock option is selected
This option returns ordered quantities back to stock
Confirm the cancellation
"Cancel Order" or "Confirm Cancellation" button
Success message appears; order status changes to CANCELLED
Verify order status and that cancellation reason is recorded
Check order detail page for status and notes/reason
Status shows CANCELLED; cancellation reason is visible in order history/notes
Check inventory levels for the cancelled products
Navigate to Products and check stock levels
If restock was selected, inventory has been restored by the cancelled quantities
Verify that shipped orders cannot be cancelled
Find an order with SHIPPED status and check for cancel option
Cancel option is not available or disabled for shipped orders
Shipped orders should not be cancellable through this flow
Expected Result
Order cancellation works: (1) Orders in PENDING/CONFIRMED status can be cancelled, (2) Cancellation reason is required and recorded, (3) Order status changes to CANCELLED, (4) If restock_items selected, inventory quantities are restored, (5) Customer receives cancellation notification email, (6) Cancelled order remains in history for records, (7) Shipped orders cannot be cancelled.
Ready to Complete?
Click when you have verified all steps and the expected result.
Test Info
- Module
- Orders
- Steps
- 10
- Duration
- 5 min
- XP Value
- +30