Magento 2 Auto Cancel Order

Magento 2 Auto Cancel Order aids in order management by automatically canceling the orders with the specified order statuses from the backend.

 

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Order Status in Backend
  4. Auto Order Cancellation Email to Admin
  5. Auto Order Cancellation Email to Customers

 

  1. Extension Installation
  • Extract the zip folder and upload our extension to 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, login to Magento 2, move to Stores > Configuration > Auto Cancel Order where you can find various settings to enable the extension.
  • Auto Cancel Order: Enable auto cancel order extension from here.
  • Auto Cancel Order After X Date: Set a specific date to auto-cancel orders placed on and after the date.
  • Apply on Order Status: Select to auto cancel orders having the selected order status.
  • Apply on Payment Methods: Select to auto cancel orders placed using the selected payment methods.
  • Duration: Set duration after which you want to auto-cancel orders of the selected payment method.
  • Units: Specify the unit of the duration you set for the order cancellation.
  • Send Email Notification to Admin: Set YES to send auto cancel Email notification to the admin.
  • Send Email To: Select the admin Email receiver.
  • Admin Email Template:  Select template to send auto cancel order notification Email to admin.
  • Send Email Notification to Customer: Set YES to send auto cancel Email notification to the customers.
  • Customer Email Template:  Select template to send auto cancel order notification Email to the customers.


 

  1. Order Status in Backend
    Once the extension meets the specified date, payment method, duration of the order placed, order statuses, it automatically cancels the orders.
  • Order status before auto cancellation


  

  • Order status after auto cancellation


  

  1. Auto Order Cancellation Email to Admin
    Immediately after an order gets canceled based on selected order statuses and payment methods, admin gets an Email notification having the order ID listed which were canceled.


  

  1. Auto Order Cancellation Email to Customers
    Immediately after an order gets canceled based on the selected payment method and order status, the customer gets Email notification.