Jump to content

Recommended Posts

 
I'm having a problem with prestashop tab client (pending) pending when I click the following error appears 
 
[PrestaShopException]

object Order can't be loaded
at line 146 in file controllers/admin/AdminOutstandingController.php

140.         $order_invoice = new OrderInvoice($id_invoice);
141.         if (!Validate::isLoadedObject($order_invoice))
142.             throw new PrestaShopException('object OrderInvoice can\'t be loaded');
143.         $order = new Order($order_invoice->id_order);
144.         if (!Validate::isLoadedObject($order))
145.             throw new PrestaShopException('object Order can\'t be loaded');
146.         $customer = new Customer((int)$order->id_customer);
147.         if (!Validate::isLoadedObject($order_invoice))
148.             throw new PrestaShopException('object Customer can\'t be loaded');
149.
150.         return '<b>'.$customer->getOutstanding().'</b>';

 

Link to comment
Share on other sites

×
×
  • Create New...