And your definitely clearing cache? All that fun stuff?
no cache plugins on the site
and I do not understand the second sentence my cache and empty
Sorry. Not talking about a cache plugin. All sites are cached in a browser almost always by default. You need to clear the cache to make sure you’re not constantly just refreshing an admin page.
Then you need to rerun the shopping process over
it still does not work, can we use a cron spot or something else?
I may be a simpler solution.
you have to change the status from failed to cancel
your code works but not correctly:
Currently if the customer does not finalize the order it goes into status: failed. if I modify myself the status of the order status: canceled the order and directly remove.
Here’s what to do for orders: failed
1 – detected failed commands
2 – remove them completely from the site
When you say finalized are you saying it’s NOT updating it to “failed”?
finalized = paid = order validated / completed
No I get that part. That’s by default anyway.
However, you stated that “my code” works but not correctly. So I’m trying to assess and understand that statement. Is my code impeding on the default flow of a completed sale at all? Is it not placing it in the trash?
it automatically deletes the command with the cancel status.
Now it should be possible to automatically change the status of orders: failed -> cancel -> your code -> delete