5 replies [Last post]
popscythe's picture
Offline
Joined: 12/27/2007
Juice: 38
Was this information Helpful?

I'm looking to rename the shopping cart. How can I go about doing this?

Forgive me if this is a no-brainer, I tried searching for it but didn't see anything.

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3464
Re: Renaming the shopping cart

You can override the theme_uc_cart_block_title() function in your theme. This is the most general method, and learning how to override theme functions will help you do a lot of customization, not just renaming text. Or, you can enable the Locale module and use that to "translate" all occurrences of "Shopping cart" to whatever you want. This method only customizes the text strings for you, but it too can be useful.

<tr>.
popscythe's picture
Offline
Joined: 12/27/2007
Juice: 38
Re: Re: Renaming the shopping cart

Thanks!

splash112@drupal.org's picture
Offline
Joined: 03/31/2008
Juice: 413
Re: Re: Re: Renaming the shopping cart

Although the topic is quite old...

Just discovered the String Override module on Drupal.org
http://drupal.org/project/stringoverrides

Just install and you can override any string within 3 mouse clicks.

Br
Mark

ajay_al's picture
Offline
Joined: 04/11/2011
Juice: 13
Re: Renaming the shopping cart

This is something I'm sure a lot of Drupal users outside of the USA would want to be able to do. Is it possible to amend Ubercart core to use a variable all over the module(s) for the name of the cart/basket/trolley (whatever you want to call it) and have a configuration setting for naming the cart?

This way, one change would replicate to all the areas the term is used, such as the buttons, blocks etc. Maybe even assign it a token, so if you change the text on the button it can be "Submit to ['uc:cart']"?

This is something way beyond my capabilities as a non-programmer (also, forgive the above token syntax if it's incorrect), but am I onto something or just talking gibberish?

jackocnr's picture
Offline
Joined: 12/12/2011
Juice: 25
Ubercart Basket

There's a module for this! It's called Ubercart Basket.