Jump to content
Sign in to follow this  

Discount Coupon Contribution Hick-up

Recommended Posts



I wonder if someone can please help me! I downloaded the contributions, fixes etc... for the Discount Coupons and it looked like it was going to work great!


Then a hick-up.... I was able to set it all up, get the code, set the parameters of time etc... and when I tried to buy something and cash out, this is the message I received....


Fatal error: Cannot redeclare class order in 
/home/content/( EDIT USER)/html/includes/classes/discount_coupon.php 
on line 13

HERE ARE THE CODES from that file:

 $Id: order.php,v 1.33 2003/06/09 22:25:35 hpdl Exp $
 osCommerce, Open Source E-Commerce Solutions
 Copyright © 2003 osCommerce
 Released under the GNU General Public License
 class order {
   var $info, $totals, $products, $customer, $delivery, $content_type;

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

     if (tep_not_null($order_id)) {
     } else {


I am a bit of a noobie, point me in the right direction, tell me what needs to be done, I can usually get er done with a little help!



Char :)

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