andripao Posted July 8, 2017 Share Posted July 8, 2017 Hi I want to make dashboard view sales calculation but only sales product with out shipping cost . can some one help me . You can See on Attached file Link to comment Share on other sites More sharing options...
Scully Posted July 8, 2017 Share Posted July 8, 2017 Look at dashtrends.php in /modules/dashtrends. This array might be the key to your question. // We need the following figures to calculate our stats $tmp_data = array( 'visits' => array(), 'orders' => array(), 'total_paid_tax_excl' => array(), 'total_purchases' => array(), 'total_expenses' => array() ); Link to comment Share on other sites More sharing options...
samuel89 Posted November 2, 2020 Share Posted November 2, 2020 Quote $tmp_data['visits'] = AdminStatsController::getVisits(false, $date_from, $date_to, 'day'); $tmp_data['orders'] = AdminStatsController::getOrders($date_from, $date_to, 'day'); $tmp_data['total_paid_tax_excl'] = AdminStatsController::getTotalSales($date_from, $date_to, 'day'); $tmp_data['total_purchases'] = AdminStatsController::getPurchases($date_from, $date_to, 'day'); $tmp_data['total_expenses'] = AdminStatsController::getExpenses($date_from, $date_to, 'day'); I believe these are the stuff you are looking for. You just need to adjusts those functions in AdminStatsController. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now