{"id":274325,"date":"2020-11-13T17:32:22","date_gmt":"2020-11-13T17:32:22","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=274325"},"modified":"2024-04-03T11:30:32","modified_gmt":"2024-04-03T11:30:32","slug":"magento2-auto-cancel-order","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/","title":{"rendered":"Magento 2 Auto Cancel Order"},"content":{"rendered":"\n<p><a href=\"https:\/\/store.webkul.com\/magento2-auto-cancel-order.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 Auto Cancel Order <\/a>using this module the store-owners can perform automated order cancellation for orders placed. <\/p>\n\n\n\n<p>With specific order statuses like pending and processing only by setting up a required order duration(set up cron).<\/p>\n\n\n\n<p>Moreover, the admin and the customer both will receive an auto-generated copy of the order cancellation email.<\/p>\n\n\n\n<p>Firstly, the module is very helpful in saving the time of the store-owners by excluding them to manually cancel each and every order.<\/p>\n\n\n\n<p>At instances involving any technical glitches like web store crash or an uncertain error in the payment gateway. Secondly, at the same time providing instant feedback to the customers via email for those order cancellations.<\/p>\n\n\n\n<p>Check the plugin setup flow &#8211;<\/p>\n\n\n\n<div class=\"wp-block-wk-block-youtube-video wk-block--yt-video\">\n<div class=\"wk-block--yt-video-frame\">\n<div class=\"wk-block--yt-video-frame-request\" data-plyr-provider=\"youtube\" data-plyr-embed-id=\"VQaOtmDFsSc\">\u00a0<\/div>\n<\/div>\n<\/div>\n\n\n\n\n<div class=\"wk-index-wrap\">\n<h3 class=\"index-title\">Features<\/h3>\n<ul>\n<li>Enable\/Disable from the back-end.<\/li>\n<li>Saves the time and effort of manually cancelling orders.<\/li>\n<li>The Admin can choose order status Pending and Processing or either one of it for cancellation.<\/li>\n<li>The Cron Automatically cancels the order based on selected order status.<\/li>\n<li>Choose the email template for both the admin and customers email notification.<\/li>\n<li>Admin and customer will receive instant order cancelled notification via email.<\/li>\n<\/ul>\n<\/div>\n<div class=\"wk-index-wrap\">\n<h3 class=\"index-title\">Installation<\/h3>\n<\/div>\n<p>Firstly, customers will get a\u00a0<strong>zip folder<\/strong> and they have to extract the contents of this zip folder on their system. Secondly, the extracted folder has an<strong>\u00a0src<\/strong>\u00a0folder, inside the src folder you have the\u00a0<strong>app\u00a0<\/strong>folder.<\/p>\n<p>Further, the admin needs to transfer this <strong>app<\/strong>\u00a0folder into the Magento2 root directory on the server as shown below.<\/p>\n<figure class=\"wp-image-271895 img-loading img-center-small\"><\/figure>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-374406\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png\" alt=\"m2_installation\" width=\"1855\" height=\"697\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png 1855w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation-300x113.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation-1200x451.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation-250x94.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation-768x289.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation-1536x577.png 1536w\" sizes=\"(max-width: 1855px) 100vw, 1855px\" loading=\"lazy\" \/><\/p>\n<p>After the successful installation you have to<strong>\u00a0run these commands<\/strong>\u00a0in the\u00a0<strong>Magento2 root\u00a0<\/strong>directory:<\/p>\n<p><strong>First command &#8211;<\/strong><\/p>\n<pre>php bin\/magento setup:upgrade<\/pre>\n<p><strong>Second Command &#8211;<\/strong><\/p>\n<pre class=\"\">php bin\/magento setup:di:compile<\/pre>\n<p><strong>Third Command &#8211;<\/strong><\/p>\n<pre>php bin\/magento setup:static-content:deploy<\/pre>\n<p><strong>Fourth Command &#8211;<\/strong><\/p>\n<pre class=\"\">php bin\/magento indexer:reindex<\/pre>\n<p>Right after that flush the cache from Magento admin panel by navigating through-&gt;<strong>System<\/strong>-&gt;<strong>Cache management<\/strong>\u00a0as shown below.<\/p>\n<figure class=\" img-loading img-center-small\"><img decoding=\"async\" class=\"img-center-small zm-zoomer zm-zoomer-in wk-lazify-loaded\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Flush-Cache-1.png\" alt=\"Flush-Cache-1\" data-src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Flush-Cache-1.png\" data-alt=\"Flush-Cache-1\" \/><\/figure>\n<h3>\u00a0<\/h3>\n<h3>Configuration of Multi-Lingual<\/h3>\n<p>The\u00a0admin will navigate through\u00a0<strong>Store &gt; Configuration &gt; General -&gt;Locale Options\u00a0and select the\u00a0locale\u00a0as German (the language into which admin wants<\/strong>\u00a0to translate his store content).<\/p>\n<figure class=\"wp-block-image is-style-default\"><a class=\"wp-image-89053 img-loading\" href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/configuration.png\"><img decoding=\"async\" class=\"wp-image-89053 zm-zoomer zm-zoomer-in wk-lazify-loaded\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/configuration.png\" alt=\"configuration\" width=\"1343\" height=\"865\" data-src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/configuration.png\" data-alt=\"configuration\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/configuration.png 1343w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/configuration-250x161.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/configuration-300x193.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/configuration-768x495.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/configuration-1200x773.png 1200w\" sizes=\"(max-width: 1343px) 100vw, 1343px\" \/><\/a><\/figure>\n<h3><strong>Language Translation For Auto Cancel order Module<\/strong><\/h3>\n<p>If you need to do the module translation, please navigate the following path in your system.\u00a0<strong>app\/code\/Webkul\/AutoCancelOrder\/i18n<\/strong>. Open the file named\u00a0<strong>en_US.CSV<\/strong>\u00a0for editing as shown in below screenshot.<\/p>\n<figure class=\"wp-image-273722 img-loading img-center-small\"><img decoding=\"async\" class=\"wp-image-273722 img-center-small zm-zoomer zm-zoomer-in wk-lazify-loaded\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/encrypt-01-1200x389.png\" alt=\"encrypt-01\" width=\"800\" data-src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/encrypt-01-1200x389.png\" data-alt=\"encrypt-01\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/encrypt-01-1200x389.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/encrypt-01-300x97.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/encrypt-01-250x81.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/encrypt-01-768x249.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/encrypt-01.png 1314w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<p>Once you have opened the file for editing, replace the words after the comma(,) on the right with your translated words.<\/p>\n<figure class=\"wp-image-273186 img-loading img-center-small\"><img decoding=\"async\" class=\"img-center-small zm-zoomer zm-zoomer-in wk-lazify-loaded aligncenter wp-image-275239 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/screenshot_from_2020_11_20_15_18_24-1.png\" alt=\"screenshot_from_2020_11_20_15_18_24-1\" width=\"1116\" height=\"306\" data-src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/lang-translation.png\" data-alt=\"lang-translation\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/screenshot_from_2020_11_20_15_18_24-1.png 1116w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/screenshot_from_2020_11_20_15_18_24-1-300x82.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/screenshot_from_2020_11_20_15_18_24-1-250x69.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/screenshot_from_2020_11_20_15_18_24-1-768x211.png 768w\" sizes=\"(max-width: 1116px) 100vw, 1116px\" \/><\/figure>\n<p>After editing the CSV file, save it and then upload it to the same path\u00a0<strong>app\/code\/Webkul\/AutoCancelOrder\/i18n<\/strong>.\u00a0The module will now get translated into your desired language. It supports both the\u00a0<strong>LTR<\/strong>\u00a0and\u00a0<strong>RTL<\/strong>\u00a0languages.<\/p>\n<figure class=\"wp-image-273723 img-loading img-center-small\"><img decoding=\"async\" class=\"wp-image-273723 img-center-small zm-zoomer zm-zoomer-in wk-lazify-loaded\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/decrypt-02-1200x389.png\" alt=\"decrypt-02\" width=\"800\" data-src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/decrypt-02-1200x389.png\" data-alt=\"decrypt-02\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/decrypt-02-1200x389.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/decrypt-02-300x97.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/decrypt-02-250x81.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/decrypt-02-768x249.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/decrypt-02.png 1311w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<div class=\"wk-index-wrap\">\n<h3 class=\"index-title\">Cron Set up Configuration<\/h3>\n<p>Run these commands for cron &#8211;<\/p>\n<pre class=\"\">php bin\/magento cron:install<\/pre>\n<p>Crontab has been generated and saved.<\/p>\n<pre class=\"\">php bin\/magento cron:run<\/pre>\n<p>Run jobs by schedule.<\/p>\n<\/div>\n<div class=\"wk-index-wrap\">\n<h3 class=\"index-title\">General Settings<\/h3>\n<p>After the successful installation of the extension, the admin will find the side panel menu option &#8220;Auto Order Cancel&#8221;. From here, the admin can directly access the initial configuration settings.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-431246\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/sub-menu-option-auto-order-cancel.webp\" alt=\"ATTACHMENT DETAILS\nsub-menu-option-auto-order-cancel\" width=\"476\" height=\"437\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/sub-menu-option-auto-order-cancel.webp 476w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/sub-menu-option-auto-order-cancel-300x275.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/sub-menu-option-auto-order-cancel-250x230.webp 250w\" sizes=\"(max-width: 476px) 100vw, 476px\" loading=\"lazy\" \/><\/p>\n<p>Apart from that, the admin will can also navigate through <strong>Stores &gt; Configuration &gt; Auto Order Cancel.<\/strong><\/p>\n<p>Now, the admin will first navigate to <strong>Stores &gt; Configuration &gt; Webkul &gt;Auto Order Cancel.<\/strong><\/p>\n<\/div>\n<p><img decoding=\"async\" class=\"alignnone wp-image-431264 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/magento2-auto-order-cancel-initial-settings.webp\" alt=\"magento2-auto-order-cancel-initial-settings\" width=\"1120\" height=\"880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/magento2-auto-order-cancel-initial-settings.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/magento2-auto-order-cancel-initial-settings-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/magento2-auto-order-cancel-initial-settings-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/magento2-auto-order-cancel-initial-settings-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n<p><strong>Enable Auto Order Cancel:\u00a0<\/strong>The admin can enable or disable the auto-cancel order from here.<\/p>\n<p><strong>Order Status: <\/strong>Using this the admin can choose the order statuses type from the multi-select for which the orders will be auto cancelled.<\/p>\n<h3><span style=\"color: revert; font-size: revert; font-weight: revert;\">Order Cancel Transactional Emails<\/span><\/h3>\n<p><strong>The Order Cancel Notification Mail To Admin: <\/strong>The admin is auto-notified for their order cancellations via email notification using this field.<\/p>\n<p><strong>The Order Cancel Notification Mail to Customer: <\/strong>The customers are auto-notified for their order cancellations via email notification using this field.<\/p>\n<h3>Cron Settings<\/h3>\n<p>Now, the admin can set the cron for <strong>Auto Order Cancel.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-431255 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/magento2-auto-order-cancel-settings.webp\" alt=\"cron settings\" width=\"1120\" height=\"670\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/magento2-auto-order-cancel-settings.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/magento2-auto-order-cancel-settings-300x179.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/magento2-auto-order-cancel-settings-250x150.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/magento2-auto-order-cancel-settings-768x459.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n<p><strong>Frequency:<\/strong> The admin can set the frequency from the drop-down i.e Daily, Weekly or Monthly.<\/p>\n<p><strong>Start Time: <\/strong>The admin can set the time duration for cron.<\/p>\n<p>Now, save the changes by clicking on the <strong>Save Config\u00a0<\/strong>button.<\/p>\n<div class=\"wk-index-wrap\">\n<h3 class=\"index-title\">Workflow<\/h3>\n<\/div>\n<p>Firstly, let&#8217;s suppose because of an unfortunate event like a technical glitch, crashing of the store&#8217;s web page or an error with the payment gateway all the orders placed during this interval get stuck.<\/p>\n<p>So, now the admin has to manually cancel each and every order.<\/p>\n<p>Now, the admin can navigate to the <strong>Sales&gt;Orders <\/strong>and check all the orders in the list as shown below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-431307 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/order-section.webp\" alt=\"order list auto order cancel magento 2\" width=\"1120\" height=\"880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/order-section.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/order-section-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/order-section-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/order-section-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n\n\n<p>Rather with the help of this module, the admin can set up the cron for last minutes order and save the changes.<\/p>\n\n\n\n<p>As a result, the admin can check that all the orders of the set-lifetime auto cancelled as shown below and an email for the order cancellation delivered to the customers and admin&#8217;s email addresses.<\/p>\n\n\n<p><img decoding=\"async\" class=\"alignnone wp-image-431305 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/order-canceled.webp\" alt=\"order -cancelled\" width=\"1120\" height=\"880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/order-canceled.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/order-canceled-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/order-canceled-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/order-canceled-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n\n\n<p>Further, here is the sample image of the email-sent to the customer end for order cancellation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/04\/email-order-cancel-notification-customer.webp\" alt=\"Magento 2 order cancellation mail notification to customer \" class=\"wp-image-431343\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/04\/email-order-cancel-notification-customer.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/04\/email-order-cancel-notification-customer-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/04\/email-order-cancel-notification-customer-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/04\/email-order-cancel-notification-customer-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>That\u2019s all for the Magento 2 Auto Cancel Order extension. However, if you still have questions regarding the&nbsp;<a href=\"https:\/\/store.webkul.com\/Magento-2.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 extensions<\/a>&nbsp;please create a support ticket by clicking&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\">Webkul Support System<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2 Auto Cancel Order using this module the store-owners can perform automated order cancellation for orders placed. With specific order statuses like pending and processing only by setting up a required order duration(set up cron). Moreover, the admin and the customer both will receive an auto-generated copy of the order cancellation email. Firstly, the <a href=\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":331,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121],"tags":[6484,2023,2070,2299],"class_list":["post-274325","post","type-post","status-publish","format-standard","hentry","category-magento-2","tag-automate","tag-email-notification","tag-magento2","tag-order-cancellation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Auto Cancel Order and Notification Extension for Magento 2<\/title>\n<meta name=\"description\" content=\"Auto cancel orders based on their order status set up cron define order cancellation duration &amp; send auto-generated email for cancelled order\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Auto Cancel Order and Notification Extension for Magento 2\" \/>\n<meta property=\"og:description\" content=\"Auto cancel orders based on their order status set up cron define order cancellation duration &amp; send auto-generated email for cancelled order\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-13T17:32:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-03T11:30:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png\" \/>\n<meta name=\"author\" content=\"Neelesh Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Neelesh Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/\"},\"author\":{\"name\":\"Neelesh Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/4c045d59b1be4b2f91af35089cd2535e\"},\"headline\":\"Magento 2 Auto Cancel Order\",\"datePublished\":\"2020-11-13T17:32:22+00:00\",\"dateModified\":\"2024-04-03T11:30:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/\"},\"wordCount\":823,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png\",\"keywords\":[\"automate\",\"email notification\",\"Magento2\",\"order cancellation\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/\",\"name\":\"Auto Cancel Order and Notification Extension for Magento 2\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png\",\"datePublished\":\"2020-11-13T17:32:22+00:00\",\"dateModified\":\"2024-04-03T11:30:32+00:00\",\"description\":\"Auto cancel orders based on their order status set up cron define order cancellation duration & send auto-generated email for cancelled order\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png\",\"width\":1855,\"height\":697,\"caption\":\"m2_installation\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento 2 Auto Cancel Order\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/4c045d59b1be4b2f91af35089cd2535e\",\"name\":\"Neelesh Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4fa4026419e4f460984ec68842d594b3713d6f1847343c375ea68f5bf0a198bc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4fa4026419e4f460984ec68842d594b3713d6f1847343c375ea68f5bf0a198bc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Neelesh Singh\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/neeleshsingh-bd217\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Auto Cancel Order and Notification Extension for Magento 2","description":"Auto cancel orders based on their order status set up cron define order cancellation duration & send auto-generated email for cancelled order","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/","og_locale":"en_US","og_type":"article","og_title":"Auto Cancel Order and Notification Extension for Magento 2","og_description":"Auto cancel orders based on their order status set up cron define order cancellation duration & send auto-generated email for cancelled order","og_url":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-11-13T17:32:22+00:00","article_modified_time":"2024-04-03T11:30:32+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png","type":"","width":"","height":""}],"author":"Neelesh Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Neelesh Singh","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/"},"author":{"name":"Neelesh Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/4c045d59b1be4b2f91af35089cd2535e"},"headline":"Magento 2 Auto Cancel Order","datePublished":"2020-11-13T17:32:22+00:00","dateModified":"2024-04-03T11:30:32+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/"},"wordCount":823,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png","keywords":["automate","email notification","Magento2","order cancellation"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/","url":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/","name":"Auto Cancel Order and Notification Extension for Magento 2","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png","datePublished":"2020-11-13T17:32:22+00:00","dateModified":"2024-04-03T11:30:32+00:00","description":"Auto cancel orders based on their order status set up cron define order cancellation duration & send auto-generated email for cancelled order","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/11\/m2_installation.png","width":1855,"height":697,"caption":"m2_installation"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento2-auto-cancel-order\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento 2 Auto Cancel Order"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/4c045d59b1be4b2f91af35089cd2535e","name":"Neelesh Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4fa4026419e4f460984ec68842d594b3713d6f1847343c375ea68f5bf0a198bc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4fa4026419e4f460984ec68842d594b3713d6f1847343c375ea68f5bf0a198bc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Neelesh Singh"},"url":"https:\/\/webkul.com\/blog\/author\/neeleshsingh-bd217\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/274325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/331"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=274325"}],"version-history":[{"count":35,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/274325\/revisions"}],"predecessor-version":[{"id":431345,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/274325\/revisions\/431345"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=274325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=274325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=274325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}