![]() |
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? |
Re: Customizing 'submit' button depending on page
Since "buttons/submit.tpl" uses "buttons/button.tpl" have you tried using that instead and adding "button_title=$lng.lbl_submit_1 style="button" directly? You would have to make language variables for lbl_submit_1, lbl_submit_2, lbl_submit_3, etc. but it should get what you want although it may actually be easier to make buttons/submit_1.tpl, buttons/submit_2.tpl etc. which you may have to do anyway. I hope this helps... although I have my doubts :)
I just made $lng.lbl_submit say "Submit and Continue" |
All times are GMT -8. The time now is 06:23 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.