mark orders to cancelled in order/cleanup/unfinished cronjob

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
switch-cheehau
Posts: 14
Joined: 23 Jun 2021, 02:39

mark orders to cancelled in order/cleanup/unfinished cronjob

Post by switch-cheehau » 21 Jul 2021, 02:23

Hi Aimeos,

Instead of deleting the unfinished order, can we change the status from unfinished to cancelled when running jobs order/cleanup/unfinished?

I think it's safer because sometimes the payment transaction is successful but the callback/return are having issue.
If we hard delete the orders, it's hard to retrieve back the information.

User avatar
aimeos
Administrator
Posts: 7865
Joined: 01 Jan 1970, 00:00

Re: mark orders to cancelled in order/cleanup/unfinished cronjob

Post by aimeos » 21 Jul 2021, 07:06

Then, just don't execute the order/cleanup/unfinished job. The order will then stay with unfinished status.
Alternative is to configure a longer time period, e.g. delete the orders after 4 or 12 weeks.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
switch-cheehau
Posts: 14
Joined: 23 Jun 2021, 02:39

Re: mark orders to cancelled in order/cleanup/unfinished cronjob

Post by switch-cheehau » 21 Jul 2021, 10:25

Oh! okay. that make sense
I thought the job is necessary to be executed.
Thanks.

Post Reply