On the last update of this mod on December 4, 2016 there is a typo around line 607 in the file YOUR_ADMIN/stats_monthly_sales.php
The problem in red
Code:
if ($sel_month<>0) $loworder_query_raw .= " AND dayofmonth(o.date_purchased) = '" . $sales->fields['row_day'] . "'";
$loworder_query = $db->Exccute($loworder_query_raw);
if ($loworder_query->RecordCount()>0)
$loworder_this_row = $loworder_query;
}
The fix in Blue
Code:
if ($sel_month<>0) $loworder_query_raw .= " AND dayofmonth(o.date_purchased) = '" . $sales->fields['row_day'] . "'";
$loworder_query = $db->Execute($loworder_query_raw);
if ($loworder_query->RecordCount()>0)
$loworder_this_row = $loworder_query;
}
In case someone ran into the error PHP Fatal error: Call to undefined method queryFactory::Exccute() display when trying to display the results of monthly sales in the admin
Bookmarks