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