News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Order deleted? deleteOldPendingOrder

Started by Kuubs, May 27, 2024, 16:09:00 PM

Previous topic - Next topic

Kuubs

Hello

I have an order that is deleted. I cannot see if this is done by the system or by a user. In the model I have found this function:

deleteOldPendingOrder

Is it possible that the system deleted this order? The user actually paid the order after, so it paid a deleted order. In the database I can see the order_items still and it shows "Order deleted" in the comments which corresponds with the remove method in the tables file.

I find it weird because a lot of times i have Pending orders in my order list, and then a Confirmed order by the same user. Why does the system removes some orders and not the others? What is the treshhold for this? I find it weird that it removes orders it should never do this?

Milbo

If a user does cancels the payment, there is an old pending order. First we just tried to use this order, but that created trouble, so this function should just delete this cancelled order.
It uses the orderId/ordernumber of the cart.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Kuubs

#2
Quote from: Milbo on May 27, 2024, 16:38:45 PMIf a user does cancels the payment, there is an old pending order. First we just tried to use this order, but that created trouble, so this function should just delete this cancelled order.
It uses the orderId/ordernumber of the cart.

Okay but is it possible it deletes an order that is pending and after it then is paid? How is it possible that an order is paid and the system deletes the order?

Is it possible to disable this function? Or is it necessary ??

Or isn't it possible that an order that is pending and then paid, and is this order removed by an adminsitrator?

Milbo

use the hidden config reuseorders, just add reuseorders="" in the file
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Kuubs

#4
Quote from: Milbo on May 27, 2024, 17:10:45 PMuse the hidden config reuseorders, just add reuseorders="" in the file

Okay, so this will probably bring out a lot more Pending or Cancelled orders? is that the only thing that will happen?

And it probably is

reuseorders=0

instead of

reusorders=""