public function render(Varien_Object $row) { $retour = $row->getsm_qty() * $row->getsm_coef(); if ($retour > 0) { $retour = '<font color="green">' . $retour . '</font>'; } else { $retour = '<font color="red">' . $retour . '</font>'; } //retourne return $retour; }