Different button label on review pane at checkout
Hi,
how can one change a submit button label on last checkout page (review), so that would say 'finish' and not 'continue to the next step'?
Best,
Najtsirk
By clicking any link on this page you are giving your consent for us to set cookies.
Comments
hook_form_alter()
You'd use hook_form_alter(), I think, in a site module (custom).
Here's a little code for
Here's a little code for anyone new to altering forms ; )
function YOUR_MODULE_commerce_checkout_page_info_alter(&$checkout_pages) {
$checkout_pages['review']['submit_value'] = 'Submit Order';
}
Change Submit Order to whatever you'd like.
Thanks a lot!
I just needed this and thought 3 minutes ago, that it would be hard to find ... :-)
I would add a t
$checkout_pages['review']['submit_value'] = t('Submit Order');
Michael
Bad Usability...
The final checkout button which submits & charges *should* say "submit..." NOT "continue;" this is poor usability.
Submitting issue on d.o. queue now; until resolved, the above will do.
P.S. What's with the stupid captcha when I'm a logged in user? Sheesh, do I have to fill in a captcha to post on d.o.? Why does every little elf feel they have to re-invent the wheel?
Captcha is pretty simple
We give logged in users a lot of privileges. Some create accounts and immediately spam. Even with this captcha.
I turned off Mollom because it was randomly blocking people from posting. So now this is the simplest (but relatively effective) technique I have.
I would prefer not to be referred to as "every little elf". Maybe you could edit that out. We're all trying to do as well as we can.
Hole
Definitely a first class A-hole.