Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Administrators-1.2.2 help please


Guest

Recommended Posts

Set up Administrators

 

Seems to be working but i get this error:

Fatal error: Call to undefined function: tep_get_admin_name() in /home/virtual/site2/fst/var/www/html/Venom-Store/admin/administrators.php on line 320

 

Line 320: $heading[] = array('text' => '<center><b>' . tep_get_admin_name($aInfo->admin_id) . '</b></center>');

 

Also, i dont see nowhere on how to delete or edit the default Administrator.

 

Anyone?

Link to comment
Share on other sites

Admin 1.2.2 is working okay for me, and can for you by adding this function to the end of admin/includes/functions/general.php:

function tep_get_admin_name($admin_id) {



   $admin_query = tep_db_query("select admin_name from " . TABLE_ADMINISTRATORS . " where admin_id = '" . $admin_id . "'");

   $admin = tep_db_fetch_array($admin_query);



   return $admin['admin_name'];

 }

 

This was step 2e in the installation instructions.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...