Zen Cart Logo
Forums / Managing Customers and Orders / Altering the Gift Coupon email

Altering the Gift Coupon email

Locked

Views: 1,331

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
21 Aug 2006, 3:14 PM
#1
peteh avatar

peteh

New Zenner

Join Date:
May 2006
Posts:
22
Plugin Contributions:
0

Altering the Gift Coupon email

Hi,

Searched hi and lo, so apologies if this is posted elsewhere ...

I am trying to remove the url code with the added redemption code from the "you've been sent a gift voucher" email. I have been in and out of every file I can think of but this one has beaten me.

The process of redeeming vouchers is, imho, a little long-winded. I'd prefer the simple step of inviting receivers to open an account and entering the redemption code at the checkout. The url code with the redemption code in, simply confuses the issue.

Help appreciated.

Pete

22 Aug 2006, 2:29 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Altering the Gift Coupon email

You'll have to edit core files to remove this functionality:

/includes/modules/pages/gv_send/header_php.php
put a // comment before these lines:

line 162: $html_msg['GV_REDEEM_URL'] = '<a href="'.zen_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $id1, 'NONSSL', false).'">'.EMAIL_GV_LINK.'</a>';line 166:```
$gv_email .= EMAIL_GV_LINK . ' ' . zen_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $id1, 'NONSSL', false);;


/admin/gv_mail.php
put a /* before and a */ after this block of code:
lines 122-128```
      if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
        $message .= HTTP_SERVER  . DIR_WS_CATALOG . 'index.php/gv_redeem/gv_no/'.$id1 . "\n\n";
        $html_msg['GV_CODE_URL']  = '<a href="'.HTTP_SERVER  . DIR_WS_CATALOG . 'index.php/gv_redeem/gv_no/'.$id1.'">' .TEXT_CLICK_TO_REDEEM . '</a>'. " ";
      } else {
        $message .= HTTP_SERVER  . DIR_WS_CATALOG . 'index.php?main_page=gv_redeem&gv_no='.$id1 . "\n\n";
        $html_msg['GV_CODE_URL']  =  '<a href="'. HTTP_SERVER  . DIR_WS_CATALOG . 'index.php?main_page=gv_redeem&gv_no='.$id1 .'">' .TEXT_CLICK_TO_REDEEM . '</a>' . " ";
      }

You'll likely also want to edit the define() statement for TEXT_OR_VISIT in the admin language file for gv_mail

22 Aug 2006, 3:12 PM
#3
peteh avatar

peteh

New Zenner

Join Date:
May 2006
Posts:
22
Plugin Contributions:
0

Re: Altering the Gift Coupon email

DrB ... I was half there in my searches but code altered and the business sorted ... if only everything in life was a quick and simple.

Cheers,

Pete