Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi

 

I have installed the Site Feedback contribution listed here:

Contrib 6550

 

As far as the main store page it looks like it is ok. I have a problem when going to my admin page, where I get the following error message:

 

Fatal error: Cannot redeclare tep_customers_name() (previously declared in /home/snowl0/public_html/shop/admin/includes/functions/general.php:60) in /home/snowl0/public_html/shop/admin/includes/functions/general.php on line 1364

 

Here is the code it is referring to:

 

  function tep_customers_name($customers_id) {
   if($customers_id == '')
   return 'Guest';

   $customers = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customers_id . "'");
   $customers_values = tep_db_fetch_array($customers);

   return $customers_values['customers_firstname'] . ' ' . $customers_values['customers_lastname'];
 }

I am no expert here and would love to get this contrib to work any help would be greatly appreciated

Thank you

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...