Forums / Basic Configuration / How to Change "Redemption Code" to "Coupon Code" & "GV Code"

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

Locked

Views: 6,400

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
16 Apr 2008, 4:05 AM
#1
dmfelder avatar

dmfelder

Zen Follower

Join Date:
Nov 2006
Posts:
102
Plugin Contributions:
0

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?

DMFelder | Visit GreatApparelForYou.com for Chicago Direct to Garment printing and Chicago Screen Printing and for Funny Tees and shirts go to gafy.com. We also have Eco-Friendly Printing services.

16 Apr 2008, 4:29 AM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,845
Plugin Contributions:
17

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Apr 2008, 4:38 AM
#3
dmfelder avatar

dmfelder

Zen Follower

Join Date:
Nov 2006
Posts:
102
Plugin Contributions:
0

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 } } ?>

DMFelder | Visit GreatApparelForYou.com for Chicago Direct to Garment printing and Chicago Screen Printing and for Funny Tees and shirts go to gafy.com. We also have Eco-Friendly Printing services.

16 Apr 2008, 5:41 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,845
Plugin Contributions:
17

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
define ('TEXT_GV_REDEEM1' , 'Some Code');

Then, you'd again use your custom directory to modify where you want the REDEEM1 code versus the standard code.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Apr 2008, 2:58 PM
#5
dmfelder avatar

dmfelder

Zen Follower

Join Date:
Nov 2006
Posts:
102
Plugin Contributions:
0

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

DMFelder | Visit GreatApparelForYou.com for Chicago Direct to Garment printing and Chicago Screen Printing and for Funny Tees and shirts go to gafy.com. We also have Eco-Friendly Printing services.

16 Apr 2008, 4:50 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,845
Plugin Contributions:
17

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com