Jump to content

[SOLVED] How do I display Supplier Reference in BO search


skykit

Recommended Posts

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)).'">
'.($product%5B'active%5D

id_employee)).'">
edit.gif"l('Modify this product').'" />
 
id_employee)).'"
onclick="return confirm(\''.$this->l('Do you want to delete this product?', __CLASS__, true, false).' ('.addslashes($product['name]).')\');">
delete.gifl('Delete this product').'" />

';

Link to comment
Share on other sites

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

  • 3 years later...

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...