Order Cancellation
Go to System → Settings → Checkout
This setting allows you to specify the order statuses during which a logged-in customer will see a Cancel Order button on their individual order detail page. The button is displayed only if the order's current status matches one of the statuses selected here.