View Single Post
  #1  
Old 06-24-2008, 11:00 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Customizing 'submit' button depending on page

Hi All,

I'm trying to customize the text shown on the 'submit' button. Specifically, I am trying to show different text on the submit button during hte checkout process. Example, I want to show at the bottom of the profile page 'Go to Step 3' or 'Proceed to Shipping and Payment'

I've figured out the hard way to do this by creating a set of TPL's for each button, but surely there's a better way to code this.

I noticed some code,

{if $js_enabled and $usertype eq "C"}
{include file="buttons/submit.tpl" type="input" style="button" href="javascript: return check_registerform_fields(); return false;"}
{else}
<input type="submit" value=" {$lng.lbl_nextstep|strip_tags:false|escape} " />
{/if}

in the else statement where it seems fairly easy to substitute the tag shown on the submit button, but I can't figure out how to make it work in the if statement without disrupting the registration check.

Any advice?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote