Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add additional field to customers table


bilbo

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?

 

<tr>

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

<td class="main"> 

<?php

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;

}

?></td>

</tr>

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

Archived

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

×
×
  • Create New...