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?
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.
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
}
}
?>
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.
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
Re: How to Change "Redemption Code" to "Coupon Code" & "GV Code"