Discussions

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

Posted: Nov 6, 2011

Comments

Prince Manfred on November 7, 2011

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.

silavon on March 2, 2012

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

1kenthomas on February 2, 2012

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?

rfay Randy Fay on February 3, 2012

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.