Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Add additional field to customers table


Recommended Posts

Hi, I've been asked to add a title field (Mr Mrs etc) to the account details page.


I've been able to do the modifications to the code to insert the additional data into the customers table. However, I can't get my head around how the following function in account_details.php works so that I can display the field back onto the page.


Does anyone have any thoughts?



<td class="main"> <?php echo ENTRY_FIRST_NAME; ?></td>

<td class="main"> 


if ($is_read_only) {

echo $account['customers_firstname'];

} elseif ($error) {

if ($entry_firstname_error) {

echo tep_draw_input_field('firstname') . ' ' . ENTRY_FIRST_NAME_ERROR;

} else {

echo $firstname . tep_draw_hidden_field('firstname');


} else {

echo tep_draw_input_field('firstname', $account['customers_firstname']) . ' ' . ENTRY_FIRST_NAME_TEXT;




I wish....

I had the Money of Bill [Gates]

The Wit of Oscar [Wilde]

and could play the guitar like Carlos [santana]!!!



I guess I'll just have to settle with being me! :D

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...