Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2006
    Posts
    105
    Plugin Contributions
    0

    Default How to Change "Redemption Code" to "Coupon Code" & "GV Code"

    My customers have become confused during checkout. Some have coupons, others have GVs.

    Durting checkout, in both the Discount Coupon AND Gift Voucher sections, the cart says "Redemption Code." I realize that either field works (in either section), but it just creates confusion. I would rather make it obvious to the customer to avoid this.

    I would like the Discount Coupon section to say "Coupon Redemption Code" and the Gift Voucher section to say "Gift Redemption Code." Unfortunately, both sections use the same dynamically-created variable, and a change to one section changes the other.

    The code is in: tpl_checkout_payment_default.php

    Can anyone suggest a simple way to do this?

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,180
    Plugin Contributions
    11

    Default Re: How to Change "Redemption Code" to "Coupon Code" & "GV Code"

    using the extra filenames feature of the override, you'd create a second variable name and value.

    REDEMPTION1 .....
    REDEMPTION2 .....

    Change them accordingly in the tpl file.

  3. #3
    Join Date
    Nov 2006
    Posts
    105
    Plugin Contributions
    0

    Default Re: How to Change "Redemption Code" to "Coupon Code" & "GV Code"

    First, thanks for the quick response.

    I don't understand what you mean. The two fieldsets are dynamically created from the same routine (below) and the "Redemption Code" variable in languages/english is used twice. Can you please explain your solution?

    <?php
    }
    for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
    ?>


    <fieldset>
    <legend><?php echo $selection[$i]['module']; ?></legend>
    <?php echo $selection[$i]['redeem_instructions']; ?>
    <div class="gvBal larger"><?php echo $selection[$i]['checkbox']; ?></div>
    <label <?php echo ($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
    <?php echo $selection[$i]['fields'][$j]['field']; ?>
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT, 'onclick="submitFunction('.zen_user_has_gv_account($_SESSION['customer_id']).','.$order->info['total'].')"'); ?></div>


    </fieldset>


    <?php
    }
    }
    ?>

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,180
    Plugin Contributions
    11

    Default Re: How to Change "Redemption Code" to "Coupon Code" & "GV Code"

    Redemption Code is not a variable but the VALUE assigned to the variable TEXT_GV_REDEEM.

    If that variable needs to show one VALUE one time and another VALUE another, add
    PHP Code:
    define ('TEXT_GV_REDEEM1' 'Some Code'); 
    right under the TEXT_GV_REDEEM in the includes/languages/english/custom/english.php file (around line 59).
    Then, you'd again use your custom directory to modify where you want the REDEEM1 code versus the standard code.

  5. #5
    Join Date
    Nov 2006
    Posts
    105
    Plugin Contributions
    0

    Default Re: How to Change "Redemption Code" to "Coupon Code" & "GV Code"

    Thanks,

    It worked.

    I was required to create a new variable and redefine the instance in includes/languages/english/modules/order_total/my_template/ot_coupon.php

    When all was said and done, it wasn't a big deal, but it does seem like something that should have been there in the first place. Perhaps this minor improvement should be added to an upcoming version. In my case, it will certainly alleviate customer confusion.

    -David
    http://www.gafy.com

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,180
    Plugin Contributions
    11

    Default Re: How to Change "Redemption Code" to "Coupon Code" & "GV Code"

    Glad you got it going.
    You can post your wishes at http://www.zen-cart.com/forum/forumdisplay.php?f=142

 

 

Similar Threads

  1. v150 Changing the word "Redemption Code" for Gift Certificates, but not Coupons
    By ShanghaiLad in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 30 Nov 2012, 09:17 PM
  2. v150 Connt get rid of "Invalid Coupon Code"
    By webmeister in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 9 Nov 2012, 09:09 PM
  3. Change "Redemption Code" to "Coupon Code"?
    By carol2848 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 May 2011, 07:07 PM
  4. Replies: 24
    Last Post: 17 Dec 2008, 06:33 PM
  5. Replies: 3
    Last Post: 3 Jun 2008, 11:41 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR