Magento 2 Cancel Order

 

Magento 2 Cancel Order extension offers customers the facility to cancel their orders from the frontend and notifies the admin about the order cancellation via Email.

 

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Order Cancellation Notification Email Settings
  4. Order Cancellation from Frontend
  5. Order Status Update in Backend
  6. Order Cancellation Notification Email to Admin

 

  1. Extension Installation
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above- php bin/magento setup:static-content:deploy -f
    • php bin/magento cache:flush
  • That’s it.

 

  1. Configuration
    For configuring the extension, log in to Magento 2, move to Stores > Configuration > Cancel Order where you can find various settings to enable the extension.
  • Cancel Order: Enable Cancel Order extension.
  • Button Text: Enter text for the Cancel Order button in the frontend.
  • Cancellation Notice for Popup: Enter cancellation notice to show in the order cancellation confirmation popup.


  

  1. Order Cancellation Notification Email Settings
    The extension facilitates to send an Email notification to the admin when someone cancels the order from the frontend.
  • Send Order Cancel Notification to Admin: Set YES to send an order cancellation notification to admin.
  • Email ID: Enter Email ID of the admin to receive notification.
  • Email Sender: Select the Email sender.
  • Email Template: Select the Email template.


 

  1. Order Cancellation from Frontend
    Once the extension is configured, after the customers place the order from frontend, they can see Cancel Order button for the pending orders in their “My Account” section.
  • Cancel Order Button in My Account Dashboard
    Customers can cancel pending orders from My Account dashboard.


  

  • Cancel Order button in My Orders Page
    Customers can also cancel pending orders from My Orders page.


  

 

  • Cancel Order Button in Order View Page
    Customers can also cancel an individual pending order from the order view page.


  

  • Order Cancellation Confirmation Popup
    On click of the Cancel Order button, a responsive order cancellation confirmation popup is opened. Here, the customer can see the order number for which he has requested the cancellation and notice added from the backend. He has to enter the reason for the order cancellation prior to confirming order cancellation.


  

  • Order Cancellation Success Message
    Once the customer submits the button from the order cancellation confirmation popup, the success message is displayed.


  

  1. Order Status Update in Backend
    Once the order is canceled successfully from the frontend, the related order status is updated in the Sales > Orders grid.  


 
  1. Order Cancellation Notification Email to Admin
    Immediately after the successful order cancellation from the frontend, the admin gets an order cancellation notification Email with the order and customer details.