Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Gift Vouchers as Gift Certificates


need_help.php

Recommended Posts

;) I am able to set up gift vouchers, and redeem them. I need to be able to have it when someone purchases a gift certificate that it prompts for who they want to send it to. Is there a way that when a certificate is purchased that it sends a gift voucher by that name to whomever the customer designates? Also, on my order totals page under modules I have this error, maybe this is why it doesn't work, but I can't seem to figure it out.

 

Fatal error: Cannot redeclare class ot_lev_discount in /home/virtual/site103/fst/var/www/html/catalog/inldues/modules/order_total/ot_lev_discount.php

 

all it says on this line is

 

class ot_lev_discount { This is line 17

var $title, $output;

 

function ot_lev_discount() {

$this->code = 'ot_lev_discount';

$this->title = MODULE_LEV_DISCOUNT_TITLE;

$this->description = MODULE_LEV_DISCOUNT_DESCRIPTION;

$this->enabled = MODULE_LEV_DISCOUNT_STATUS;

$this->sort_order = MODULE_LEV_DISCOUNT_SORT_ORDER;

$this->include_shipping = MODULE_LEV_DISCOUNT_INC_SHIPPING;

$this->include_tax = MODULE_LEV_DISCOUNT_INC_TAX;

$this->calculate_tax = MODULE_LEV_DISCOUNT_CALC_TAX;

$this->table = MODULE_LEV_DISCOUNT_TABLE;

// $this->credit_class = true;

$this->output = array();

}

 

function process() {

global $order, $ot_subtotal, $currencies;

$od_amount = $this->calculate_credit($this->get_order_total());

if ($od_amount>0) {

$this->deduction = $od_amount;

$this->output[] = array('title' => $this->title . ':',

'text' => '<b>' . $currencies->format($od_amount) . '</b>',

'value' => $od_amount);

$order->info['total'] = $order->info['total'] - $od_amount;

if ($this->sort_order < $ot_subtotal->sort_order) {

$order->info['subtotal'] = $order->info['subtotal'] - $od_amount;

}

 

Please Help

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