# Frontend Order Cancellation Popup

Once the customer logs in to their account and navigates to **“My Orders”**, they can find an option to cancel the complete order as shown below.

<figure><img src="/files/qdJaIFzGMGZJtmag0auH" alt=""><figcaption></figcaption></figure>

On clicking **View Order**, the customer can also find the option to cancel the complete order or cancel a specific item.&#x20;

<figure><img src="/files/VuN2XiiS8MhMrP0Vu2uF" alt=""><figcaption></figcaption></figure>

The extension comes with an order or item cancellation pop-up that triggers on the click of the ‘Cancel Order’ or ‘Cancel Item’ link on the front end. If you enable the pop-up, the extension will ask customers to choose the reason why they want to cancel the order or item, their mobile number, and additional comments; otherwise, the extension will directly cancel the order.

**Cancel Order Popup**

<figure><img src="/files/5s0SLijFFhlOr21cSdXR" alt=""><figcaption></figcaption></figure>

**Cancel Item Popup**

<figure><img src="/files/YQyHRybJ8NmIlN02Oi2P" alt=""><figcaption></figcaption></figure>

Once the customer fills in all the required order or item cancellation details, the extension will display a successful cancellation message, as shown below.

<figure><img src="/files/ElLWLKcHuchsL8itrzAr" alt=""><figcaption></figcaption></figure>

And this canceled order or item will automatically be listed in the backend canceled order grid.

Customers can view the refund of the canceled order from their My Account in the storefront.

<figure><img src="/files/uglcCbGW3B5lstjamyLY" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.magecomp.com/magento-2-cancel-order-by-customer-extension/frontend-order-cancellation-popup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
