when i successfully remove an item i get this table
<table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="messageStackSuccess"> <td class="messageStackSuccess"><img src="images/icons/success.gif" border="0" alt="Uitgevoerd" title=" Uitgevoerd " /> Success: The discount code has been removed.</td> </tr> </table>
I want to add a class to this table in the function messagestack i see this:
function output() {
$this->table_data_parameters = 'class="messageBox"';
return $this->tableBlock($this->errors);
}
but there is no class messageBox added....
This is the function the create the box... so i am kinda lost why there is no extra table class
class tableBlock {
var $table_border = '0';
var $table_width = '100%';
var $table_cellspacing = '0';
var $table_cellpadding = '2';
var $table_parameters = '';
var $table_row_parameters = '';
var $table_data_parameters = '';
function tableBlock($contents) {
$tableBox_string = '';
$form_set = false;
if (isset($contents['form'])) {
$tableBox_string .= $contents['form'] . "\n";
$form_set = true;
array_shift($contents);
}
$tableBox_string .= '<table border="' . $this->table_border . '" width="' . $this->table_width . '" cellspacing="' . $this->table_cellspacing . '" cellpadding="' . $this->table_cellpadding . '"';
if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters;
$tableBox_string .= '>' . "\n";
Edited by poNgz0r, 05 May 2011 - 08:57 PM.










