Allow cancel order

When enabled, you can cancel an order directly from the customer’s account. Cancel is disabled by default.

Criteria for cancellation to be enabled for an order

  • The Allow Cancel Order configuration option must be enabled.

  • If order is in Hold, Canceled, Complete, or Closed status, the cancel option is disabled on the storefront.

  • If any of the items in the order have shipped, the cancel option is disabled on the storefront.

  • If there is some item paid, the cancel option is enabled and the refund is created for that item.

  • If order is in Pending or Processing status, the cancel option is enabled on the storefront.

Configure to allow customer cancellation and customize the cancellation reasons

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Sales and select Sales.

  3. Expand Expansion selector the Order cancellation section.

    Order Cancellation options {width="600" modal="regular"}

  4. Set Order cancellation through GraphQL to Yes.

    This setting enables cancel functionality from the customer account on the storefront.

  5. In the Order Order cancellation reasons you can add, delete, or modify any cancellation reason.

    With this setting, cancellation reasons are displayed on the storefront to the customer when they cancel an order.
    Make sure you have specified at least one reason.

  6. Click Save Config.

Cancel from the storefront

A customer can initiate the cancel functionality for a specific order from three pages:

  • My Orders page

  • Order View page

  • My Account page

My Orders

The Cancel Order button is displayed in the My Orders page if the order can be canceled.

Example storefront - My Orders page

Order view page

The Cancel Order button is displayed in the View Order page if the order can be canceled.

Order details page

My Account

The Cancel Order button is displayed in the Recent Orders section of the My Account page, if the order can be canceled.

My Account page

recommendation-more-help
dacea746-44a9-4368-b3fb-3bcff64c6be1