Jump to content

show reference number in product list in admin panel??


Recommended Posts

I could need to put the reference number of the products to the list in the admin panel category/product list....where you can filter by id, name, price, quantity...etc..........so I need to take reference number of the product after the product name!!!

Is this available somehow?????

thanks for advise

Link to comment
Share on other sites

wow ! this is a news for me!!! I use 1.1, and I dont't feel enough brave to upgrade the version, because my shop is just fully loaded with product and if I make something wrong, that should be a big suck, and waste a big money!!!

so I dont know how to upgrade safety! but thanks for a reply!!!!

Link to comment
Share on other sites

If you don't want to upgrade, you can add the Reference column after the Name in Prestashop v1.1 by changing the following code near the top of admin/tabs/AdminProducts.php:

$this->fieldsDisplay = array(
   'id_product' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 20),
   'image' => array('title' => $this->l('Photo'), 'align' => 'center', 'image' => 'p', 'width' => 45, 'orderby' => false, 'filter' => false, 'search' => false),
   'name' => array('title' => $this->l('Name'), 'width' => 323, 'filter_key' => 'b!name'),
   'price' => array('title' => $this->l('Base price'), 'width' => 70, 'price' => true, 'align' => 'right', 'filter_key' => 'a!price'),
   'price_final' => array('title' => $this->l('Final price'), 'width' => 70, 'price' => true, 'align' => 'right'),
   'quantity' => array('title' => $this->l('Quantity'), 'width' => 30, 'align' => 'right', 'filter_key' => 'a!quantity', 'type' => 'decimal'),
   'position' => array('title' => $this->l('Position'), 'width' => 40, 'align' => 'center', 'position' => 'position'),
   'active' => array('title' => $this->l('Displayed'), 'active' => 'status', 'align' => 'center', 'type' => 'bool', 'orderby' => false));



to:

$this->fieldsDisplay = array(
   'id_product' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 20),
   'image' => array('title' => $this->l('Photo'), 'align' => 'center', 'image' => 'p', 'width' => 45, 'orderby' => false, 'filter' => false, 'search' => false),
   'name' => array('title' => $this->l('Name'), 'width' => 277, 'filter_key' => 'b!name'),
   'reference' => array('title' => $this->l('Reference'), 'align' => 'center', 'width' => 20), 
   'price' => array('title' => $this->l('Base price'), 'width' => 70, 'price' => true, 'align' => 'right', 'filter_key' => 'a!price'),
   'price_final' => array('title' => $this->l('Final price'), 'width' => 70, 'price' => true, 'align' => 'right'),
   'quantity' => array('title' => $this->l('Quantity'), 'width' => 30, 'align' => 'right', 'filter_key' => 'a!quantity', 'type' => 'decimal'),
   'position' => array('title' => $this->l('Position'), 'width' => 40, 'align' => 'center', 'position' => 'position'),
   'active' => array('title' => $this->l('Displayed'), 'active' => 'status', 'align' => 'center', 'type' => 'bool', 'orderby' => false));

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...