Jump to content

How do I add Status order in AdminStats


codochi

Recommended Posts

Hello,

 

I'm using Prestashop 1.6

I created override/controllers/admin/AdminStatsController.php with the following:

<?php
// Check order status in Stats Dashboard BO

class AdminStatsController extends AdminStatsControllerCore
{
    public function __construct()
    {
        parent::__construct();
        
        $this->fields_list['order_statuses'] = array('title' => $this->l('Order Status');            
        
    }
        
}

After deleting cache, HTTP ERROR 500 appears.

 

PLEASE hELP

tHANK YOU

Link to comment
Share on other sites

  • 10 months later...
On 25/3/2018 at 4:51 AM, ndiaga said:

I need a  closer look. 

What you get when deleting the override :   override/controllers/admin/AdminStatsController.php    ?

 

Dear Sir,

 

Blank page appears. I think that code is bad.

When I delete override file, Product sale appear normally.

I want Status of orders

2323232.thumb.JPG.f38288498a8ca3c2f79f9333fdfac926.JPG

 

appear in atribute sales distribution

443443434.thumb.JPG.c7fb7ad564307c357823935dd6f56171.JPG

Edited by codochi (see edit history)
Link to comment
Share on other sites

5 hours ago, ndiaga said:

 

Ok,  the override code is is missing some important  data.

 

Dear Sir,

I think AdminStatsController.php include statsproduct.php (stastic product module).

But I don't know how to add code.

Can you help me?

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...