This is how I did it, it may not be 100% compatible and I would welcome anyone's criticism, but it works for me.
edit includes/modules/order_total/ot_coupon.php
After this code:
PHP Code:
if ($od_amount['type'] == 'S') $order->info['shipping_cost'] = 0;
$sql = "select coupon_code from " . TABLE_COUPONS . " where coupon_id = '" . (int)$_SESSION['cc_id'] . "'";
$zq_coupon_code = $db->Execute($sql);
$this->coupon_code = $zq_coupon_code->fields['coupon_code'];
Enter:
PHP Code:
// bof edit to show coupon description
$coupon_desc_query = "select coupon_description from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . (int)$_SESSION['cc_id'] . "'";
$coupon_code_exec = $db->Execute($coupon_desc_query);
$this->coupon_desc = $coupon_code_exec->fields['coupon_description'];
// eof edit to show coupon description
Then edit:
PHP Code:
$this->output[] = array('title' => $this->title . ': ' . '<a href="javascript:couponpopupWindow(\'' . zen_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $_SESSION['cc_id']) . '\')">' . $this->coupon_code . '</a> :',
'text' => '-' . $currencies->format($od_amount['total']),
'value' => $od_amount['total']);
To:
PHP Code:
$this->output[] = array('title' => $this->title . ': ' . '<a href="javascript:couponpopupWindow(\'' . zen_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $_SESSION['cc_id']) . '\')">' . $this->coupon_code . '</a> (' . $this->coupon_desc . ') :',
'text' => '-' . $currencies->format($od_amount['total']),
'value' => $od_amount['total']);
Bookmarks