kinda lost with the file structures and which set of files to be modified
I have basic to intermediary knowledge in php and have a lot of patience to try & learn

As the topic states, i would like to sort & search my clients by telephone number within my customer list
I assume the files to edit are,
customer_list.tpl - to add extra column
Code: Select all
<td class="left"><?php if ($sort == 'c.telephone') { ?>
<a href="<?php echo $sort_telephone; ?>" class="<?php echo strtolower($order); ?>"><?php echo $column_telephone; ?></a>
<?php } else { ?>
<a href="<?php echo $sort_telephone; ?>"><?php echo $column_telephone; ?></a>
<?php } ?></td>
Code: Select all
//column
$_['column_telephone'] = 'Telephone No';
Code: Select all
<tr>
<td><span class="required">*</span> <?php echo $entry_telephone; ?></td>
<td><input type="text" name="telephone" value="<?php echo $telephone; ?>" />
<?php if ($error_telephone) { ?>
<span class="error"><?php echo $error_telephone; ?></span>
<?php } ?></td>
</tr>
Code: Select all
(within public function)
if (isset($data['telephone']) && !is_null($data['telephone'])) {
$implode[] = "c.telephone = '" . $this->db->escape($data['telephone']) . "'";
}
so what did I do wrong?
error msg
Notice: Undefined variable: column_telephone in /public_html/shop/admin/view/template/sale/customer_list.tpl on line 29
please do enlighten me
thank you in advance
jeya