Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / title tag is empty on product pages

title tag is empty on product pages

Views: 2,060

Results 1 to 17 of 17
7 Mar 2013, 6:55 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: title tag is empty on product pages

tomarriola:

The page title is missing on my product pages. I suspect I have erred somewhere while installing a mod. Can anyone lead me to the correct files that manage this? I'm on ZENCART 1.3.9

problem:

<title></title>

Sample url:
http://www.crimescene.com/store/index.php?main_page=product_info&cPath=60&products_id=694

Thanks
Tom

Perhaps this:
http://www.zen-cart.com/showthread.php?182777-Difficulty-with-the-lt-title-gt-tag-on-product-pages

Cheers
Rod

7 Mar 2013, 6:58 AM
#3
tomarriola avatar

tomarriola

Zen Follower

Join Date:
Oct 2004
Posts:
206
Plugin Contributions:
0

Re: title tag is empty on product pages

Thanks. I have the settings on for "Show Metatags Title Default - Product Name" I also have the language files populated. The metatags show up for category pages. My guess is I made a mess of the header.php but none of my experiments worked to resolve the empty title
Tom

7 Mar 2013, 7:13 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: title tag is empty on product pages

Try switching to the classic template and see what displays

If they are there then you have confined it to your custom template files

8 Mar 2013, 12:19 AM
#5
tomarriola avatar

tomarriola

Zen Follower

Join Date:
Oct 2004
Posts:
206
Plugin Contributions:
0

Re: title tag is empty on product pages

It is missing in the classic template too. Which file there holds the key-- anyone know?

8 Mar 2013, 12:28 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: title tag is empty on product pages

Double-check all your language files under /includes/languages and undo any changes you've made to /includes/modules/meta_tags.php and/or /includes/modules/NAME_OF_YOUR_TEMPLATES_HERE/meta_tags.php

8 Mar 2013, 9:31 AM
#7
tomarriola avatar

tomarriola

Zen Follower

Join Date:
Oct 2004
Posts:
206
Plugin Contributions:
0

Re: title tag is empty on product pages

Thanks-- those files are populated and appear to be working. I know this because the titles do appear under certain urls

Surely this is a clue to someone who knows the inner-workings. To me it is a big mystery. Both products are type: product-general
Tom

The <title> is populated. This item is in the clearance category. Any item in clearance works
http://www.crimescene.com/store/index.php?main_page=product_info&cPath=49&products_id=1004

The <title> is NOT populated. This is in a different category
http://www.crimescene.com/store/index.php?main_page=product_info&cPath=66&products_id=51

8 Mar 2013, 11:57 AM
#8
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: title tag is empty on product pages

tomarriola:

Thanks-- those files are populated and appear to be working. I know this because the titles do appear under certain urls

It was never implied that those files would be unpopulated. As for the comment "appear to be working", this isn't really helpful. There could bejust some entries in the file that aren't working, and those will be the ones you need to fix. This will explain why you only have the problem with some categories.

I'm not in any way suggesting that this** IS **the case, but you can't eliminate the possibility just because "they are populated and appear to be working".

tomarriola:

Surely this is a clue to someone who knows the inner-workings.

Ouch! What a slap in the face. I don't think anyone knows the inner workings better than DrByte.
If I were you I'd actually go back and do as he suggested before looking into other possibilities.

tomarriola:

To me it is a big mystery.

If it weren't, you wouldn't be here seeking a solution now, would you.

tomarriola:

Both products are type: product-general

This could be a clue if the problem is with** all** products of the type product-general (and nothing else), otherwise it it doesn't really tell us anything.

Speaking of clues, if you navigate your way to catalog->categories/products->top, then look at the far right of the screen you'll see a something that looks a bit like a radiation warning symbol. Are these the same colour for all categories? If so, what colour?
What about the products themselves? Same deal, are these symbols all the same colour, or are the problem products a different colour?

I'm going to take a punt and suggest that the categories/products without the title tags will be showing as a red colour, and all the others will be black.

Click on one of the red ones and you'll probably note that the 'title' field is empty. That'll explain your problem too. If the symbols are all black, then the problem is elsewhere.

Cheers
Rod

8 Mar 2013, 11:12 PM
#9
tomarriola avatar

tomarriola

Zen Follower

Join Date:
Oct 2004
Posts:
206
Plugin Contributions:
0

Re: title tag is empty on product pages

I've been posting here since 2004 and DrByte has helped me more than once. I'm not discounting his knowledge. I compared my language files to a virgin copy and replaced them with virgin copies as well. I did the same with the metatags.php file

The good news is --> Your advice to look at the meta-tag icon proved to be useful.

With few exceptions, the metatags are off (and the on/off settings are set to no as below.) When I set them to "on" the tags meta-details populate the page.
No Product Name
No Title:
No Model:
No Price:
No Title/Tagline:

Until some recent point in time those tags all appeared in the title tag. Now it appears I will need to open 900 products and click checkboxes to yes in the metatag setting. Is there a checkbox elsewhere that places these items in by default?

I'm not making it up. Our pages all had titles, product names and price info in the title. Now they don't. I'm hoping I don't need to click 900 products to click 5 items to yes. Instead there surely must be is a higher level checkbox that needs to be set so they are displayed by default. I'm Hoping...

Thanks
Tom

8 Mar 2013, 11:23 PM
#10
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: title tag is empty on product pages

tomarriola:

I've been posting here since 2004 and DrByte has helped me more than once. I'm not discounting his knowledge. I compared my language files to a virgin copy and replaced them with virgin copies as well. I did the same with the metatags.php file

The good news is --> Your advice to look at the meta-tag icon proved to be useful.

With few exceptions, the metatags are off (and the on/off settings are set to no as below.) When I set them to "on" the tags meta-details populate the page.
No Product Name
No Title:
No Model:
No Price:
No Title/Tagline:

Until some recent point in time those tags all appeared in the title tag. Now it appears I will need to open 900 products and click checkboxes to yes in the metatag setting. Is there a checkbox elsewhere that places these items in by default?

I'm not making it up. Our pages all had titles, product names and price info in the title. Now they don't. I'm hoping I don't need to click 900 products to click 5 items to yes. Instead there surely must be is a higher level checkbox that needs to be set so they are displayed by default. I'm Hoping...

Thanks
Tom
check here also
admin->Catalog->Product Types->Edit Layout->Show Metatags Title Default - Product Title

8 Mar 2013, 11:43 PM
#11
tomarriola avatar

tomarriola

Zen Follower

Join Date:
Oct 2004
Posts:
206
Plugin Contributions:
0

Re: title tag is empty on product pages

gilby:

check here also
admin->Catalog->Product Types->Edit Layout->Show Metatags Title Default - Product Title

Thanks. I triied that initially and just now. It has no effect on the products where the 5 meta tags are set to off.

I used easypopulate to update products and it is my guess that it wiped out my meta-tag settings (easypopulate won't allow me to alter meta-tags so i don't see how it zapped them) I am assuming I may need to redo them one at a time.

9 Mar 2013, 12:00 AM
#12
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: title tag is empty on product pages

tomarriola:

I used easypopulate to update products and it is my guess that it wiped out my meta-tag settings (easypopulate won't allow me to alter meta-tags so i don't see how it zapped them) I am assuming I may need to redo them one at a time.Important bit of info NOT previously mentioned.
So you have indeed been "playing" with the database....

As these settings are in the "products" table I assume you are right that easypopulate has zapped them.
I have never used easypopulate but I would assume that you would have to set these settings, otherwise they would default to "something", probably off

You can use an sql patch to turn them all on.

9 Mar 2013, 12:55 AM
#13
tomarriola avatar

tomarriola

Zen Follower

Join Date:
Oct 2004
Posts:
206
Plugin Contributions:
0

Re: title tag is empty on product pages

Gilby, I think you are right on all counts. It took me a bit to recall that I had made some attempts at using EP and found it made more changes than I had wanted. Now I know the extent.

You are right-- Someone who knows what they are doing could easily update the table for the products. Someone like me that knows just enough-- would likely cause some other problem. Anyone out there able to write me up something? I'll send a load of crime scene shirts, candy and detecting supplies.

9 Mar 2013, 3:55 AM
#14
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: title tag is empty on product pages

tomarriola:

Anyone out there able to write me up something? I'll send a load of crime scene shirts, candy and detecting supplies.

We don't need to be 'bribed' in order to help. Especially for something quite simple.

UPDATE **products** SET metatags_title_status = 1, metatags_products_name_status = 1, metatags_model_status = 1, metatags_price_status = 1, metatags_title_tagline_status = 1 ;

NOTE1: If your ZenCart install uses table prefixes, you'll need to modify the **products** part to suit. (eg: **zen_products**)
NOTE2: Change the '1's to '0's to disable the option(s).
NOTE3: This will update ALL of the products meta-data in a fraction of a second. Always make a backup of the table 1st.

Cheers
Rod

9 Mar 2013, 5:15 AM
#15
tomarriola avatar

tomarriola

Zen Follower

Join Date:
Oct 2004
Posts:
206
Plugin Contributions:
0

Re: title tag is empty on product pages

Thanks! I'll do a backup and give it a spin. I appreciate it.
Tom

9 Mar 2013, 7:05 AM
#16
tomarriola avatar

tomarriola

Zen Follower

Join Date:
Oct 2004
Posts:
206
Plugin Contributions:
0

Re: title tag is empty on product pages

Problem solved. Thanks.

9 Mar 2013, 7:34 AM
#17
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: title tag is empty on product pages

tomarriola:

Problem solved. Thanks.

Thanks for letting us know the problems is solved. Always appreciated.

Cheers
Rod