I already update the necessary files with your paypal improve v1 and did the other instruction on the readme file!!! and my site is on the internet.. its not locally based.
But the admin website doesn't show the "order" that was placed??
And this code i found from other thread. Do i need to update the paypal.php(paypal improve v1) to make my customer order appear in the admin? any help from you bruce is appreciated. thanks man.
Code: Select all
$sql = "select `order_status_id` from `order_status` where `name` = '?' and `language_id` = '?'";
$parsed = $this->database->parse($sql, $this->language->get('order_status_pending'), $this->language->getId());
$results = $this->database->getRow($parsed);
if ($results)
{
$pendingStatus = $results['order_status_id'];
}
//
// Perhaps the IPN from paypal has arrived before the user has returned from
// the paypal web site OR the user has not returned at all.
// In response to either case, we should load and process the order.
//
$reference = $this->request->get('invoice', 'post');
if ($this->order->load($reference))
{
// IPN is winner or customer never returned and IPN arrived.
// default status should be Pending so the update below will have no
// effect if we process the order here but the end result is still correct.
$this->order->process();
}
$sql = "update `order` set `order_status_id` = '?' where `reference` = '?' and `order_status_id` = '?'";
// bug fix from asif
//$parsed = $this->database->parse($sql, $paidUnconfirmedStatus, $reference, $pendingStatus);
$parsed = $this->database->parse($sql, $pendingStatus, $reference, $paidUnconfirmedStatus);
$this->database->query($parsed);
}