Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing Help


Mickeyr

Recommended Posts

Hope someone can help me out.

 

I have installed the producting listing from Mat.

 

I get an error

 

Fatal error: Call to undefined function: tep_currency_format() in /var/hsphere/local/home/mickey/pamelashoes.com/admin/stats_products.php on line 82

 

How can I fix this?

 

Marc

Link to comment
Share on other sites

go to your admin directory, find the file stats_products.php, find what is on line 82.

Post that line plus about 10 lines either side. Then someone may be able to see the fault.

hth :)

Link to comment
Share on other sites

Here is the whole file. Please help me.

 

stats_product.php

 

 

<?php

/*

$Id: stats_products.php,v 1.22 2002/03/07 20:30:00 harley_vb Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

 

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td></td>

<!-- body_text //-->

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="menuboxheading" align="center"><?php echo strftime(DATE_FORMAT_LONG); ?></td>

</tr>

 

</table></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

 

<tr>

<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="tableHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></td>

<td class="tableHeading"><?php echo TABLE_HEADING_QUANTITY; ?></td>

 

<td class="tableHeading" align="center"><?php echo TABLE_HEADING_PRICE; ?> </td>

 

</tr>

<tr>

<td colspan="3"><hr></td>

</tr>

<?php

if ($HTTP_GET_VARS['page'] > 1) $rows = $HTTP_GET_VARS['page'] * 20 - 20;

$products_query_raw = "select p.products_id, pd.products_name, p.products_quantity, p.products_price, l.name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_LANGUAGES . " l where p.products_id = pd.products_id and p.products_id = pd.products_id and l.languages_id = pd.language_id order by pd.products_name ASC";

 

$products_query = tep_db_query($products_query_raw);

while ($products = tep_db_fetch_array($products_query)) {

$rows++;

 

if (strlen($rows) < 2) {

$rows = '0' . $rows;

}

 

 

 

 

 

 

 

?>

 

<tr class="tableRow">

 

<td class="tableData"><?php echo $products['products_name']; ?></td>

 

<td class="tableData"><?php echo $products['products_quantity']; ?></td>

 

 

<td class="tableData" align="center"><?php echo tep_currency_format($products['products_price']); ?> </td>

 

</tr>

<?php

}

?>

<tr>

<td colspan="3"><?php echo tep_draw_separator(); ?></td>

</tr>

</table></td>

<tr>

<td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2">

 

</table></td>

</tr>

</table></td>

</tr>

</table></td>

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

 

 

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...