skykit Posted November 5, 2010 Share Posted November 5, 2010 Hi, I have tried mod the code when I search the Supplier Reference, I can get the result, but I have added a column for Supplier Ref, but cannot display the Supplier Reference. Any one know the problem?line 62$this->fieldsDisplay['catalog'] = (array( 'ID' => array('title' => $this->l('ID')), 'manufacturer' => array('title' => $this->l('Manufacturer')), 'reference' => array('title' => $this->l('Reference')),'supplier_reference' => array('title' => $this->l('Supplier Ref')), 'name' => array('title' => $this->l('Name')), 'price' => array('title' => $this->l('Price')), 'tax' => array('title' => $this->l('Tax')), 'stock' => array('title' => $this->l('Stock')), 'weight' => array('title' => $this->l('Weight')), 'status' => array('title' => $this->l('Status')), 'action' => array('title' => $this->l('Actions'))line 167'.$product['id_product'].''.($product['manufacturer_name'] != NULL ? stripslashes($product['manufacturer_name']) : '--').''.$product['reference'].''.$product['supplier_reference'].'id_employee)).'">'.stripslashes($product['nameh']).''.Tools::displayPrice($product['price'], $currency).''.stripslashes($product['tax_name']).''.$product['quantity'].''.$product['weight'].' '.Configuration::get('PS_WEIGHT_UNIT').'id_employee)).'">id_employee)).'">l('Modify this product').'" /> id_employee)).'" onclick="return confirm(\''.$this->l('Do you want to delete this product?', __CLASS__, true, false).' ('.addslashes($product['name]).')\');">l('Delete this product').'" />'; Link to comment Share on other sites More sharing options...
Patric Posted November 5, 2010 Share Posted November 5, 2010 Topic déplacé dans la bonne section. Link to comment Share on other sites More sharing options...
Zenith Posted November 7, 2010 Share Posted November 7, 2010 In "classes/product.php"Change: SELECT p.`id_product`, pl.`name`, pl.`link_rewrite`, p.`weight`, p.`active`, p.`ecotax`, i.`id_image`, p.`reference`, to: SELECT p.`id_product`, pl.`name`, pl.`link_rewrite`, p.`weight`, p.`active`, p.`ecotax`, i.`id_image`, p.`reference`, p.`supplier_reference`, Link to comment Share on other sites More sharing options...
skykit Posted November 7, 2010 Author Share Posted November 7, 2010 Is works. Thank you so much for your help. Problem solved. Link to comment Share on other sites More sharing options...
mowax Posted June 12, 2014 Share Posted June 12, 2014 Can anyone help me do this in prestashop 1.5.4.1? classes/product.php is different in my version thanks for any help! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now