Community Forums

Error On Dashboard

General support for technical problems with OpenCart v1.x

Error On Dashboard

Postby ToddR » Tue Jan 17, 2012 6:03 pm

When Im in My dashboard ,
Under latest 10 orders
I go to click view on a persons order and I get this error,
Fatal error: Call to undefined method ModelSaleCustomer::getTotalTransactionsByOrderId() in /home/trambila/public_html/admin/controller/sale/order.php on line 1240

Please Help ,
Email me at trambilas@aol.com for a quick response in return I will paypal you $5 via gift
ToddR
 
Posts: 13
Joined: Tue Oct 18, 2011 2:15 am

Re: Error On Dashboard

Postby jimmyphong » Tue Jan 17, 2012 6:21 pm

Call to undefined method ?

go to file : admin\model\sale\customer.php

find function getTotalTransactionsByOrderId has exits yet ?

code for this function :
Code: Select all
public function getTotalTransactionsByOrderId($order_id) {
      $query = $this->db->query("SELECT COUNT(*) AS total FROM " . DB_PREFIX . "customer_transaction WHERE order_id = '" . (int)$order_id . "'");
   
      return $query->row['total'];
   }   
jimmyphong
 
Posts: 159
Joined: Fri Aug 12, 2011 6:48 pm

Re: Error On Dashboard

Postby ToddR » Wed Jan 18, 2012 2:11 pm

public function getTotalCustomerTransactionsByOrderId($order_id) {
$query = $this->db->query("SELECT COUNT(*) AS total FROM " . DB_PREFIX . "customer_transaction WHERE order_id = '" . (int)$order_id . "'");

return $query->row['total'];

I have this one
ToddR
 
Posts: 13
Joined: Tue Oct 18, 2011 2:15 am

Re: Error On Dashboard

Postby niquey » Thu Apr 05, 2012 2:05 am

Hi, did you get this fixed? I have the same problem. Thanks
niquey
 
Posts: 7
Joined: Tue Apr 03, 2012 7:27 pm


Return to General Support

Who is online

Users browsing this forum: granddaddy, hashmat, JackDavis, luara999, mistermime, MSN [Bot], ocart777, peterman3, soj47 and 95 guests

Hosted by Arvixe Web Hosting