fitgura Posted September 27, 2009 Share Posted September 27, 2009 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 More sharing options...
rocky Posted September 27, 2009 Share Posted September 27, 2009 Hi fitgura,I'm using Prestashop v1.2.4 and I've already got a Reference column after the Name column. I know that Prestashop v1.1 doesn't have that column. Which version are you using? Link to comment Share on other sites More sharing options...
fitgura Posted September 28, 2009 Author Share Posted September 28, 2009 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 More sharing options...
rocky Posted September 28, 2009 Share Posted September 28, 2009 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 More sharing options...
fitgura Posted September 28, 2009 Author Share Posted September 28, 2009 Hi rocky!!!you are a genuine hero!!!! (did you see the film , name kingpin? if you dont please watch it thanks it is works fine!!!!! Link to comment Share on other sites More sharing options...
AbeP Posted March 24, 2011 Share Posted March 24, 2011 So you don't want to upgrade but you're willing to use custom code? How does that make sense? Link to comment Share on other sites More sharing options...
Recommended Posts