Yes,
you have to modify 2 files.
1.) search in ~/htdocs/product/list.php for the following
$sql = 'SELECT p.rowid, p.ref, p.label, p.fk_product_type, p.barcode, p.price, p.tva_tx, p.price_ttc, p.price_base_type, p.entity,';
and add “p.description” to the query. Now it looks like the following
$sql = 'SELECT p.rowid, p.ref, p.description, p.label, p.fk_product_type, p.barcode, p.price, p.tva_tx, p.price_ttc, p.price_base_type, p.entity,';
Next search for (same file)
if (empty($reshook)) {
$product_static->id = $obj->rowid;
$product_static->ref = $obj->ref;
$product_static->ref_fourn = empty($obj->ref_supplier) ? '' : $obj->ref_supplier; // deprecated
and add “$product_static->description = $obj->description;”. Now it looks like the following
if (empty($reshook)) {
$product_static->id = $obj->rowid;
$product_static->ref = $obj->ref;
$product_static->description = $obj->description;
$product_static->ref_fourn = empty($obj->ref_supplier) ? '' : $obj->ref_supplier; // deprecated
2.) add in ~/htdocs/product/class/product.class.php
in public function getNomUrl(…)
if (!empty($this->description)) {
$label .= '<br><b>'.$langs->trans('ProductDescription').':</b> '.$this->description;
}
after the line
if (!empty($this->label)) {
$label .= '<br><b>'.$langs->trans('ProductLabel').':</b> '.$this->label;
}
This shows the description of the product when you hover the ref of the product in the list view.