Results 1 to 3 of 3
  1. #1
    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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default 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:
    Code:
          $html_msg['GV_REDEEM_URL'] = '<a href="'.zen_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $id1, 'NONSSL', false).'">'.EMAIL_GV_LINK.'</a>';
    line 166:
    Code:
          $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
    Code:
          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>'. "&nbsp;";
          } 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>' . "&nbsp;";
          }
    You'll likely also want to edit the define() statement for TEXT_OR_VISIT in the admin language file for gv_mail
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2006
    Posts
    22
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. v138a Including Gift Vouchers in the Discount Coupon calculation
    By Gmachlin in forum General Questions
    Replies: 4
    Last Post: 26 Dec 2013, 06:25 AM
  2. coupon for free gift with gift certificate purchase?
    By tkepler in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 Jul 2008, 03:31 PM
  3. Duplicating the Coupons Module - gift cards vs coupon discounts
    By pete123 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 2 Jul 2007, 03:47 AM
  4. Email customizing - gift certificate/coupon
    By MPF in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Apr 2007, 08:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg