[Skip to main content](#vessel-content)

#   Auto Cancel Orders Plugin Issues

##

- **[mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")**
- [![mojooutdoors-holden's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile") Topic Author
- [ Offline](/forum/user/12526-mojooutdoors-holden)

Less More

- Posts: 303
- Thank you received: 18
-
-

5 years 11 months ago [\#327308](#327308) by [mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")  *[Auto Cancel Orders Plugin Issues](/forum/35-orders-management/901488-auto-cancel-orders-plugin-issues#327308 "-- HikaShop version -- : 4.4.0  The auto cancel plugin doesn't seem to be cancelling orders marked as created that are over the limit set in the plugin.  Current plugin config: Period - 21600 (6 hours)  Cron setup through hosting: run daily at midnight  Cron minimum delay between tasks in hima config: 15 minutes (default)  The Cron runs successfully for all Hikashop tasks except for the orders cancel, and occasionally I see that orders were checked from the from report logs. I have about 4k created orders that need to be canceled (dating back to 2018). I can easily do this with a mass action, but I am curious to know why the plugin isn't taking care of this automatically?")* was created by *[mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")*

-- HikaShop version -- : 4.4.0

The auto cancel plugin doesn't seem to be cancelling orders marked as created that are over the limit set in the plugin.

Current plugin config:
Period - 21600 (6 hours)

Cron setup through hosting: run daily at midnight

Cron minimum delay between tasks in hima config: 15 minutes (default)

The Cron runs successfully for all Hikashop tasks except for the orders cancel, and occasionally I see that orders were checked from the from report logs. I have about 4k created orders that need to be canceled (dating back to 2018). I can easily do this with a mass action, but I am curious to know why the plugin isn't taking care of this automatically?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMTQ4OC1hdXRvLWNhbmNlbC1vcmRlcnMtcGx1Z2luLWlzc3Vlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

5 years 11 months ago [\#327320](#327320) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Auto Cancel Orders Plugin Issues](/forum/35-orders-management/901488-auto-cancel-orders-plugin-issues#327320 "-- HikaShop version -- : 4.4.0  The auto cancel plugin doesn't seem to be cancelling orders marked as created that are over the limit set in the plugin.  Current plugin config: Period - 21600 (6 hours)  Cron setup through hosting: run daily at midnight  Cron minimum delay between tasks in hima config: 15 minutes (default)  The Cron runs successfully for all Hikashop tasks except for the orders cancel, and occasionally I see that orders were checked from the from report logs. I have about 4k created orders that need to be canceled (dating back to 2018). I can easily do this with a mass action, but I am curious to know why the plugin isn't taking care of this automatically?")*

Hi,

Besides the obvious reasons (plugin disabled, not with "public" access, "last cron update" date in the far future, cron not running, etc), here are things that could be problematic:
- if you have the "notify" option activated, it will send an email notification for each order. Sending an email can take a long time, and if there is a bug in the email notification generation, it can crash the process, stopping the status change of all the orders being processed.
- the plugin will only be changing the status of 20 orders on each cron trigger in order to reduce the possibility of a crash during the processing, so maybe it's actually working but you didn't notice. If you have 4000 orders to change, and the plugin is triggered once every 6 hours, it will take 50 days to process all the orders. Note that the goal of the plugin is to process the new orders. Not to process a backlog of 4000 orders. So I would recommend to first do a mass action for the really old orders and then you can let the plugin handle the new orders from that point on.
- the plugin will use the statuses configured under the "created" and the "cancelled" columns of the System&gt;Order statuses menu. So maybe there is a problem with the way the statuses are configured ?

The following user(s) said Thank You: [mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMTQ4OC1hdXRvLWNhbmNlbC1vcmRlcnMtcGx1Z2luLWlzc3Vlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")**
- [![mojooutdoors-holden's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile") Topic Author
- [ Offline](/forum/user/12526-mojooutdoors-holden)

Less More

- Posts: 303
- Thank you received: 18
-
-

5 years 11 months ago [\#327339](#327339) by [mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")  Replied by *[mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")* on topic *[Auto Cancel Orders Plugin Issues](/forum/35-orders-management/901488-auto-cancel-orders-plugin-issues#327339 "-- HikaShop version -- : 4.4.0  The auto cancel plugin doesn't seem to be cancelling orders marked as created that are over the limit set in the plugin.  Current plugin config: Period - 21600 (6 hours)  Cron setup through hosting: run daily at midnight  Cron minimum delay between tasks in hima config: 15 minutes (default)  The Cron runs successfully for all Hikashop tasks except for the orders cancel, and occasionally I see that orders were checked from the from report logs. I have about 4k created orders that need to be canceled (dating back to 2018). I can easily do this with a mass action, but I am curious to know why the plugin isn't taking care of this automatically?")*

Ah! I think the piece of information i was missing was the max number of order status changes per cron trigger (all other settings you mention are set appropriately). I will go ahead and perform the mass action to take care of the 4000 backlogged orders that are marked as created.

Thanks Nicolas!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMTQ4OC1hdXRvLWNhbmNlbC1vcmRlcnMtcGx1Z2luLWlzc3Vlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
