Post by ToddR » Wed Jan 18, 2012 2:03 am

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


Posts

Joined
Tue Oct 18, 2011 10:15 am


Post by jimmyphong » Wed Jan 18, 2012 2:21 am

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'];
	}	

News CMS || Plus SEO || Live Price change with Option Select



Posts

Joined
Sat Aug 13, 2011 2:48 am


Post by ToddR » Wed Jan 18, 2012 10: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


Posts

Joined
Tue Oct 18, 2011 10:15 am


Post by niquey » Thu Apr 05, 2012 10:05 am

Hi, did you get this fixed? I have the same problem. Thanks


Posts

Joined
Wed Apr 04, 2012 3:27 am