Jump to content

New order invalid due to having no order status


Recommended Posts

Hello, 

 

we are running a 1.4.6 verson of prestashop and we recetly received a feedback from our users that some of them didn't get their orders. Upon inspection, we found out, that some orders, about 1 in 200, is not visible in Back-Office due to having no Order Status.

In admin/tabs/AdminOrders.php, there is a condition that in order to get selected with getList method, an order has to have a status.

 

We also found out, that there is no known error in the code since we never modified this part of Prestashop. It is independent of payment method or carrier, daytime or anything else and occurs completely randomly.

 

The orders are normally created, we have no reports of any visible errors on the side (such as 500 code or blank screen) when users created those orders, they can see those orders in their own profile, since they exists and only are invalid and ivisible in BO. There is no problem with the contents of those orders - all products, discounts and addresses match up.

 

Here in the Forums, some people pointed towards a bug in a PayPal module, but we are not using PayPal in our shop.

 

Does anybody have any experience with such behavior?

Link to comment
Share on other sites

This is a long-standing problem. Some payment modules, in some conditions, sometimes .... fail to save ps_order_history record. Because of SQL queries used, such an order is invisible in BO.

 

You can create that record by hand, in case you see a hole between order numbers.

Link to comment
Share on other sites

×
×
  • Create New...