need_help.php Posted August 12, 2004 Share Posted August 12, 2004 ;) 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 Quote Link to comment Share on other sites More sharing options...
remixstore Posted August 17, 2004 Share Posted August 17, 2004 hey... did you ever get this to work??? great idea Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.