
Originally Posted by
Jamie
If the order was not completed, there is no way to obtain the information for it.
Wow. I just looked, and that's really the case. I'd call that a pretty serious bug, since it seems like there might be any number of reasons that IPN might break (inadvertent mis-configuration being the most common).
Ok, you may be able to recover this order. First, back up your database tables.
If I was using SC3, I'd create a content page and a link to that page (but I wouldn't publish the link). Note the record number of the link. Then within the content page I'd embed the following PHP code:
Code:
$invoice = #; // Where # is the Order_Number taken from the TEMP_Sessions record
$pending_order = get_field_val('TEMP_Sessions','Cart_Contents',"Order_Number = '$invoice'");
$SC['order'] = get_magic_quotes_runtime() ? unserialize(stripslashes($pending_order)) : unserialize($pending_order);
sc_complete_order(0,0,'Completed');
Then I'd access the page once, and only once by using the record number of the link, via
http://www.mywebsite.com/index.php?sc_page=<link record #>
if everything goes well, you should end up with the order showing up in the order database. You can then use SQL to delete the record from the TEMP_Sessions table.