5 replies [Last post]
duarte.garin's picture
Offline
Joined: 07/01/2010
Juice: 19
Was this information Helpful?

Hello,
I am new to Ubercart and am wondering how to change the Checkout on the Checkout page to say "Payment" for example. Can anyone tell me which file the html construction takes place or if there is a better way?
Thanks in advance,

Duarte Garin

WebNewCastle's picture
Offline
Joined: 04/29/2009
Juice: 595
Re: How to change Checkout Page Title from "Checkout" to "Paymen

There are a few ways you could do this, but one through your theme would be to:

1) Make a copy of the page.tpl.php file in your theme
2) Rename it to: page-cart-checkout.tpl.php
3) Edit the part where you probably have a $title being printed
4) Upload the file to your theme folder

- Matt

Matthew Winters / WebNewCastle.com - Drupal & Ubercart development, training, and consulting. Drupal profile
Online community, product development, & policy management.

modctek@gmail.com's picture
Offline
Joined: 04/04/2008
Juice: 31
Useful info
WebNewCastle wrote:

There are a few ways you could do this, but one through your theme would be to:

1) Make a copy of the page.tpl.php file in your theme
2) Rename it to: page-cart-checkout.tpl.php
3) Edit the part where you probably have a $title being printed
4) Upload the file to your theme folder

This was useful to me, as I was looking for a way to remove certain theme elements from our checkout pages, such as the primary links.

mrfelton's picture
Offline
Joined: 10/03/2008
Juice: 31
Re: How to change Checkout Page Title from "Checkout" to "Paymen

In your theme - in template.php

function mytheme_preprocess_page(&$vars, $hook) {
  if (arg(0) == 'cart' && arg(1) == 'checkout') {
    $vars['title'] = 'Donate online';
  }
}

Tom Kirkpatrick - kirkdesigns.co.uk

WebNewCastle's picture
Offline
Joined: 04/29/2009
Juice: 595
Re: Re: How to change Checkout Page Title from "Checkout" to "Pa

Oh, much smarter and more efficient.

Do what Tom suggested - that's better. Smiling

- Matt

Matthew Winters / WebNewCastle.com - Drupal & Ubercart development, training, and consulting. Drupal profile
Online community, product development, & policy management.

duarte.garin's picture
Offline
Joined: 07/01/2010
Juice: 19
Re: How to change Checkout Page Title from "Checkout" to "Paymen

Thanks very much for your help guys!

I will try Tom's suggestion,

Best,

Duarte