Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

mess up my admin/customers.php


Recommended Posts

Hi, I need HELP

I try to modified my admin/customers.php to add customer addresses from the admin side I download the file and open it in notepad I did the following (see below) and now I when I try to open the customer box I get this message


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.


Please contact the server administrator, webmaster@belfabracing.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.


More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



add customer addresses from the admin side


in admin/customers.php




case 'addaddress':



$sql_data_array = array('customers_id' => $HTTP_GET_VARS['cID']);

tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);


$get_address_id = tep_db_query("SELECT address_book_id FROM address_book WHERE customers_id = '" . (int)$HTTP_GET_VARS['cID'] . "' ORDER BY address_book_id DESC LIMIT 1");


$address_id = tep_db_fetch_array($get_address_id);

$new_address_id = $address_id['address_book_id'];


tep_redirect(tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action','add_id')) . 'cID=' . $HTTP_GET_VARS['cID'] . '&action=edit&add_id=' . $new_address_id));







case 'update':


$customers_id = tep_db_prepare_input($HTTP_GET_VARS['cID']);


$customers_firstname = tep_db_prepare_input($HTTP_POST_VARS['customers_firstname']);





<td class="formAreaTitle"><?php echo CATEGORY_ADDRESS; ?></td>




<td class="formAreaTitle"><?php echo '' . CATEGORY_ADDRESS . '   <a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=addaddress') . '">Add an address</a>'; ?></td>

Link to comment
Share on other sites


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

  • Create New...