Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

When I try to access my Orders in admin I get:

 

Fatal error: Cannot redeclare class order in /home/ghirsch/public_html/catalog/admin/includes/classes/order.php on line 13

 

Ive been looking for a way to fix this for a few days now with no success.

 

This is what order.php looks like

 

<?php
/*
 $Id: order.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 class order {	  // THIS IS LINE 13
var $info, $totals, $products, $customer, $delivery;

function order($order_id) {
  $this->info = array();
  $this->totals = array();
  $this->products = array();
  $this->customer = array();
  $this->delivery = array();

  $this->query($order_id);
}

 

Any help would be immensely appreciated.

Posted

the class order has already been declared eleswhere, check what happens b4 this,

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted
the class order has already been declared eleswhere, check what happens b4 this,

 

Ok Sam, when you say check what happens before this what are you referring to? Im just a copy and paste hamster and have no idea how to code. I rely on following the instructions on these contribs completely. So in lamens terms how would I go about locating where this is already declared and when I do find it how would I begin to correct it. I know my questions makes it sound easy but any help or pointers are appreciated.

Posted
Ok Sam, when you say check what happens before this what are you referring to? Im just a copy and paste hamster and have no idea how to code. I rely on following the instructions on these contribs completely. So in lamens terms how would I go about locating where this is already declared and when I do find it how would I begin to correct it. I know my questions makes it sound easy but any help or pointers are appreciated.

 

Im still looking for help on this one. Im starting to get desperate. Is there anyone that can help?

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