Skip to main content
When you cancel an order in Eaglecart, you can choose whether its products go back into stock. When you reopen a cancelled order, you can choose whether to take them out again. The choice is yours, and the status changes either way. The prompt doesn’t appear on every status change. It depends on what the order contains and which statuses you’re moving between.

When the stock prompt appears

Two things must both be true:
  1. The order contains at least one stock-tracked product. That’s a product with inventory tracking turned on.
  2. The order status crosses the Cancelled boundary. It moves from an active status into Cancelled, or from Cancelled back to an active status.

Which orders count as stock-tracked

An order is stock-tracked when at least one of its products has inventory tracking turned on:
  • A physical product with Track quantity on: stock-tracked.
  • A digital product without stock tracking: not stock-tracked.
  • A service without stock tracking: not stock-tracked.
  • Any product with inventory tracking turned off: not stock-tracked.
In a mixed order, one stock-tracked product is enough for the prompt to appear. Only the tracked quantities move.

What yes and no do

The prompt is a choice, not a condition. Saying no never blocks the status change.

Step by step

  1. Open the order, or find its row in the Orders list.
  2. Change the Order status to Cancelled, or from Cancelled to an active status.
  3. If the order contains stock-tracked products, the stock prompt appears.
  4. Choose yes to move the stock, or no to skip the stock movement.
  5. The status change is saved and recorded in Order history.
If you choose no, the stock isn’t moved and Eaglecart won’t ask again for that change. Check your inventory afterwards. To fix quantities later, use a stock adjustment with a reason, so the correction is recorded.

Examples

Cancelling an order of shirts. A customer orders two stock-tracked shirts. You change the order from Confirmed to Cancelled. Eaglecart asks whether to return the tracked quantity to inventory. You choose yes, and the two shirts are back in stock. Reopening the same order. The customer changes their mind again. You change the order back to Confirmed. Eaglecart offers to deduct the stock again. You choose yes, and the two shirts are taken out of stock. Cancelling a digital download. An order contains only a digital download with inventory tracking turned off. You change it to Cancelled. No stock prompt appears, because there’s no tracked inventory to move. Confirming an order. You change an order with stock-tracked products from Pending to Confirmed. No prompt appears, because the change doesn’t involve Cancelled.

The prompt doesn’t check past stock movements

Eaglecart decides whether to show the prompt by looking at the products in the order, not at what happened to the stock before. The prompt can appear even if no stock was deducted for that order earlier. So before choosing yes, think about whether the stock really left your inventory for this order. If it didn’t, choosing yes would add stock you don’t actually have.
Technical note: the prompt is shown when the order is trackable (is_trackable, meaning at least one product in the order has inventory tracking on) and the order status change goes into or out of Cancelled. Accepting into Cancelled sends restock=1, declining sends restock=0. Accepting out of Cancelled sends deduct=1, declining sends deduct=0. The check is on product trackability, not on the order’s history of inventory movements. Changes between two non-cancelled statuses never show the prompt.

Troubleshooting

Why didn’t I see the restock prompt when cancelling? The order has no stock-tracked products. For example, it only contains a digital product or a product with inventory tracking turned off. Why does reopening a cancelled order offer to deduct stock? Moving out of Cancelled means the order is active again. If the stock was returned when you cancelled, it needs to come out again for the order. I declined the prompt by mistake. The status still changed. Correct the stock with a stock adjustment. Can I cancel an order without restocking it? Yes. Choose no when the prompt appears. The order is cancelled and stock stays as it is.