Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with admin/orders.php


datawebuk

Recommended Posts

Can you help with this one?

 

After I make the changes to admin/orders.php I get an error when trying to access that page:

 

Fatal error: Cannot redeclare class currencies in /home/sites/spacomponents.co.uk/public_html/admin/includes/classes/currencies.php on line 16

Here is the top of the code in the file:

 

<?php

/*

$Id: orders.php 8777 2006-03-20 16:17:17Z jim $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

//---PayPal WPP Modification START ---//

//Since the admin's configure.php file is STILL missing defines

include(DIR_FS_DOCUMENT_ROOT . DIR_WS_INCLUDES . 'configure.php');

 

include(DIR_WS_CLASSES . 'order.php');

 

require(DIR_WS_CLASSES . 'currencies.php');

$currencies = new currencies();

 

include(DIR_WS_INCLUDES . 'paypal_wpp/paypal_wpp_include.php');

$paypal_wpp = new paypal_wpp_admin;

//---PayPal WPP Modification END ---//

 

require(DIR_WS_CLASSES . 'currencies.php');

$currencies = new currencies();

 

$orders_statuses = array();

$orders_status_array = array();

$orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int)$languages_id . "'");

while ($orders_status = tep_db_fetch_array($orders_status_query)) {

$orders_statuses[] = array('id' => $orders_status['orders_status_id'],

'text' => $orders_status['orders_status_name']);

$orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name'];

}

 

 

 

I removed the code (shown coloured RED) and I then get this message:

 

Fatal error: Cannot redeclare class order in /home/sites/spacomponents.co.uk/public_html/admin/includes/classes/order.php on line 13

Can you point me in the right direction to resolve this?

 

Thanks

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