11 replies [Last post]
ssherriff's picture
Offline
Early adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/08/2007
Juice: 215
Was this information Helpful?

Because I'm in Australia, I've gone through the site and changed everything to be 'Catalogue' instead of 'Catalog'. I can't seem to find one, the h1 and title on the actual catalog page, so /catalogue for me, just won't take the correct thing, does anyone know why?

Cheers,
Steph

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Change catalog page heading (h1 and title)

It's probably the title of the page, which is set in uc_catalog_menu(). The one I'm thinking of is the third $item[] from the bottom of that function. The menu system uses that to set the title of the browser and that h1 tag for pages.

ProfitProphet's picture
Offline
Joined: 08/23/2007
Juice: 29
Re: Re: Change catalog page heading (h1 and title)

Hey guys, I'm trying to do the same thing.

Lyle - can you please tell me exactly which $item[] I need to edit? I tried the one that says

'title' => variable_get('uc_catalog_name', t('Catalog')),

but this did not change anything.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Change catalog page heading (h1 and title)

That's the right one, but Drupal caches them in the cache_menu table. Try emptying it out after you change it.

ProfitProphet's picture
Offline
Joined: 08/23/2007
Juice: 29
Re: Re: Re: Re: Change catalog page heading (h1 and title)

Hmm... tried that and still no change to the h1.

My code now looks like:

'title' => variable_get('uc_catalog_name', t('My Custom Page Title')),

and I emptied the cache_menu table....

I do see that 'uc_catalog_name', t('Catalog')) appears a number of other times in the uc_catalog.module page.... do I need to change any of the other instances?

Thanks!

ssherriff's picture
Offline
Early adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/08/2007
Juice: 215
Re: Re: Re: Re: Re: Change catalog page heading (h1 and title)

Basically the same thing as this is happening to me. I've actually changed things through the Localization module and most things changed, this is the only one that isn't. I've actually gone through and done some error watchdog printing and though it seems to be the right thing at certain points in the code, it still prints out wrong....I'm very confused.

ProfitProphet's picture
Offline
Joined: 08/23/2007
Juice: 29
Re: Re: Re: Re: Re: Re: Change catalog page heading (h1 and titl

This h1 message is displayed at the top of the page where our customers are going to be looking to make a purchase, I think it would be a good idea to make this text easier to change.... along with the description text that can come below it as bwv pointed out in his contrib here:

http://www.ubercart.org/contrib/142

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Re: Re: Re: Re: Change catalog page heading (h1 and

I'm sorry, I was thinking of a similar issue people were having with the Checkout page.

You can change the name of the Catalog by changing the name of the vocabulary. On your site, go to /admin/build/taxonomy and click "edit vocabulary". You can change the name to whatever you like, as well as any other setting.

svihel's picture
Offline
Joined: 05/29/2008
Juice: 140
Re: Re: Re: Re: Re: Re: Re: Re: Change catalog page heading (h1

Hi, I have the same problem, but your solution strangely doesn't work. I have tried to change the vocabulary and it is behaving very strange. I have 3 instalation of ubercart and on two of them it dont work. The one on which it is working is testing site with fresh instalation. That lead me to thought that after changing some other parameter it is no longer possible to change this title.
I think it has something to do with changing the vacabulary that is used for catalog. I already had Catalog renamed to Katalog (czech translation) and I was just testing something, so I created vocabulary named test, changed the Catalog vocabulary (in http://example.com/admin/store/settings/catalog/edit) to use vocabulary Test - this changed the title. But unfortunately when i changed it back and deleted the Test vocabulary the Test title is still there and I am unable to change it back.

svihel's picture
Offline
Joined: 05/29/2008
Juice: 140
Re: Re: Re: Re: Re: Re: Re: Re: Re: Change catalog page heading

No one else have this problem? I can't belive I would be only one with this issue.

I'm using ubercart 1.3, drupal-5.10, don't using cache and amount some other contributed modules I use Localizer. Maybe Localizer could cause some trouble, but even after uninstalling it, it still behave like I described in previous post.

sypl's picture
Offline
Joined: 02/27/2011
Juice: 7
Re: Re: Re: Re: Re: Re: Re: Re: Change catalog page heading (h1

I did that, but it's an odd way to change something just as simple as the title of the shop. If I wanted it to say 'Welcome to our Shop!' then my vocabulary would have to be called the same thing. Likewise, when the manager is entering a new product, his form is going to have a label saying 'Welcome to our Shop!' for selecting a category. Wouldn't it make more sense just to allow users to title the shop anything they want?

svihel's picture
Offline
Joined: 05/29/2008
Juice: 140
Re: Change catalog page heading (h1 and title)

For any future encounter with this problem: I fixed this by deactivating, uninstalling and then reinstalling again the Catalog module.
Althought I'm still unaware what caused this.