Hi there,
Is there an option to change "Review order" Button text in check out page?
Regards,
AnAnD
|
Ubercart |
|
|
|
||
|
Fri, 10/09/2009 - 02:47
Hi there, Is there an option to change "Review order" Button text in check out page? Regards,
Button Text
I'm interested in the same thing as I'm using Ubercart as a quoting tool for the intial roll-out of the site. I've found how to change the majority of the text surround the boxes, comment text etc by editing the PHP files but I can't seem to find the button text. I'm assuming this is a call function based on some other non-editable title variable? Any help would be appreciated.
Re: Button Text
I would also like suggestions on how to make this happen.
Re: Re: Button Text
You have to use hook_form_alter() in a custom module to make this happen. Specifically, something like the following implementation should work fine: <?php
Re: Re: Re: Button Text
Thanks for your help, Ryan. It is greatly appreciated (especially by noob's like me
Re: Re: Button Text
When doing this in function phptemplate_uc_cart_checkout_form($form) it changes the behavior of the checkout form and does not proceed to the review section, unless I (in my case) deactivate the shipping module, it didn't returned any message errors or sign that let me now what was going wrong.
Re: Re: Re: Button Text
I tried your code to change the Back button text to 'Edit' on the reivew page and it gives me a white screen. any idea how i can simply change the text in UC2.4 (drupal 6.20)? i get the error message:
Re: Re: Re: Re: Button Text
It looks like you tried to put the function in your template.php file. I used the function in a custom module and it worked great for the Review Order button. Check out this page on Drupal.org for help on building a custom module: http://drupal.org/node/416986 Also, check the name of the button. It looks like the button name is edit-back. The code might look like this: <?phpThis is just a guess. I didn't test the actual code.
String Overrides.
thanx for the info, i ended up using the String Overrides Module, although its a blanket solution, it will do until i figure out how to specifically target just this text.
CSS SOLVES THIS
I have had the same issue and got round it by using an image for the button using CSS. Have tested it on various browsers and all works fine. A lot easier than hacking code!
Working in Drupal 7 with Ubercart 3
Just a note to anyone coming across this who want to change the 'review order' label in Drupal 7 with Ubercart 3. I found that the below code in a custom module enabled me to change the label. For some reason changing $form['continue']['#value'] didn't actually change the displayed value. But $form['actions']['continue']['#value'] did. <?php |
|