Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customer Box error


Guest

Recommended Posts

Posted

Hello.

 

I hope that someone here can help me.

 

I have installed the Setcom Payment module and was installing as per the read me file included.

 

The instruction said:

 

Step 3:

 

Open the following file:

 

/admin/includes/boxes/customers.php

 

Search for the following line:

'<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>');

 

Add this line above it:

'<a href="' . tep_href_link(FILENAME_SETCOM, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_SETCOM . '</a><br>' .

 

 

 

Here is the complete script: (/admin/includes/boxes/customers.php)

 

<?php

/*

$Id: customers.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- customers //-->

<tr>

<td>

<?php

$heading = array();

$contents = array();

 

$heading[] = array('text' => BOX_HEADING_CUSTOMERS,

'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'));

 

if ($selected_box == 'customers') {

$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_SETCOM, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_SETCOM . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>');

}

 

$box = new box;

echo $box->menuBox($heading, $contents);

?>

</td>

</tr>

<!-- customers_eof //-->

 

From the oscommerce control panel, if I click on the "customer" tab on the left under administration, I get the following error:

 

 

Fatal error: Call to undefined function tep_href_link() in /home/esotenok/public_html/store/admin/customers.php on line 21

 

Does anyone know what I am doing wrong here? I am new at this so please excuse me if its a stupid question.

 

Thank you

Agora

Posted

is it just this box or do you get the error throughout your admin?

 

nic

 

It is just the customer box, thanks.

Posted

I'd say you probably uploaded the file you posted into the admin root folder instead of the /admin/includes/boxes folder.

 

That would give you the exact error you posted.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...