4

For whatever reason some of my orders (not all of them) are being canceled automatically. I guess there is some job running that does that, but I do not know where to start looking.

Any ideas where to start or what the problem might be?

M2 version is 2.1.9, but it happened in 2.1.6 as well.

Thanks!

3
  • I have same issue with 2.1.5 Commented Dec 1, 2017 at 11:43
  • did you find the cause of this behavior? Commented Dec 14, 2017 at 10:26
  • I'm having the same problem. Was there ever a solution to this? Commented Mar 13, 2018 at 15:54

3 Answers 3

7

I had the same problem, and tracked it down to orders that were Pending Payment and they would get cancelled over night. The default setting below is set to 8 hours (I know I wrote 4 hours in the image on accident). I increased mine to a year and implemented a process to make sure orders don't get that old. We use the "Pending Payment" to mark orders that are shipped but not paid yet, and the clients are usually given 30-60 days to pay.

enter image description here

1
  • I was just having the occasional cancellation and it turns out it was that!
    – iphigenie
    Commented Dec 11, 2021 at 16:25
0
It seems there is any cron job is running and this cron job hitting any observer function which is changing the status of some of your particulars Orders.

Hence you need to check observer functions manually or you can make search crontab.xml in your project directory this will give all cron jobs xml files and here you can check all instance where code is actually excuted.

Hope this will help you.

0
0

You can check your default order status, suppose for COD method.. you can change your new order status... enter image description here

2
  • Well, like I said, its does not happen right away after the order has been placed, it happens some hours later. This question is not about the new order state.
    – Arnie
    Commented Nov 1, 2017 at 8:31
  • Well , then please set cron job to run every mint... Commented Nov 16, 2017 at 13:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.