Jump to content
Sign in to follow this  
datawebuk

problem with admin/orders.php

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×