Jump to content

[SOLVED] Date in the BO products


KolfKord

Recommended Posts

but ID field is a bit similar to date, if you sort product list by ID field - you will get the same effect as in sorting by date...

 

anyway, if you still want the date field, go to the controllers/admin/AdminProductsController.php and search for:

 

$this->fields_list['name'] = array(
  'title' => $this->l('Name'),
  'filter_key' => 'b!name'
 );

 

right after this add this code:

 

	$this->fields_list['date_add'] = array(
  'title' => $this->l('Date'),
 );

 

effect:

 

VEXKA6V.png

Link to comment
Share on other sites

thanks for the information, you can also display other fields, just define it by using:

 

$this->fields_list['FIELD_NAME'] = array(
  'title' => $this->l('Title of the field in BO'),
 );

 

regards

Link to comment
Share on other sites

  • 3 weeks later...

thanks for the information, you can also display other fields, just define it by using:

 

$this->fields_list['FIELD_NAME'] = array(
  'title' => $this->l('Title of the field in BO'),
 );

 

regards

 

 

Vekia Excuse me, but if I would like to see suppliers? I tried to put

 

 

$this->fields_list['Suppliers'] = array(
'title' => $this->l('Fornitori'),
'filter_key' => 'b!name'
);

 

but does not go ... Gives me the name ...

 

 

I also tried with

 

 

$this->fields_list['Suppliers'] = array(
                   'title' => $this->l('Fornitori'),
               );

 

but nothing ... sql gives me error if I try with the last ...

Edited by KolfKord (see edit history)
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...