Jump to content

How to assign orphaned order to customer?


Recommended Posts

A customer somehow registered two accounts (with the same information) and while the cart was there the order never created (but yet the payment went through to PayPal). Weird situation, I know.

 

In any case, I deleted one of the customer entries and that left the order (that I manually created from the cart - so it would match the PayPal statement) orphaned (evidently I deleted the wrong customer duplicate).

 

In any case, it's a simple matter of assigning the order to the customer. I can't find anywhere (searched the forums and google) on how to do this!?

 

Can someone help please? I'm using the latest version of PrestShop. Thanks!

Link to comment
Share on other sites

Well, i think ps_order table is all you need to modify. Find the line corresponding to your orphaned order and set the id_customer to the id of your customer. And do not forget to set id_address_invoice and id_address_delivery. I hope this should do the job.

Link to comment
Share on other sites

×
×
  • Create New...