Jump to content

[SOLVED] Date in the BO products


KolfKord
 Share

Recommended Posts

Hello Vekia,

screen attached, in addition to ID, product name, category, price, etc. ...

I would also put the date of registration of the product in such a way as to give a sorting by date also ...

post-301566-0-99169500-1367836091_thumb.png

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
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)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More