Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Discount Coupon Contribution Hick-up


SpinerC

Recommended Posts

Hello!

 

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:

<?php
/*
 $Id: order.php,v 1.33 2003/06/09 22:25:35 hpdl Exp $
 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]
 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)) {
       $this->query($order_id);
     } else {
       $this->cart();
     }
   }

 

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!

 

Thanks!

Char :)

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