Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / meta tags for a product - title/tagline

meta tags for a product - title/tagline

Locked

Views: 17,567

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
24 May 2006, 9:58 PM
#1
atmh avatar

atmh

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

meta tags for a product - title/tagline

When adding some meta tags to a product, I noticed the title/tagline still reads "Zen Cart! The Art of eCommerce" or whatever it is standard. There is a note at the bottom of the meta tags page that says where the title/tagline is defined, and to me it appears to be the same place as the title/tagline for the entire website. as you can see from the site, http://store.madhouseminis.com the title and tagline have been changed.

Is the title/tagline for the meta tags for the individual product defined in some place else?

Thanks for the help, guys.

24 May 2006, 11:05 PM
#2
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

Go to Admin > tools > developer's toolkit.

Search for "Zen Cart! The Art of eCommerce" - put phrase in lower left box and search all files. This will give you the file to edit.

Product meta tags are edited through the admin > catalog > products - look for the an orange or black symbol on the right of the product. Site meta-tags, title, keywords, and tagline are edited in \includes\languages\CUSTOM\meta_tags.php and \includes\languages\english\CUSTOM\meta_tags.php

25 May 2006, 12:05 AM
#3
atmh avatar

atmh

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

Oh, poopie!

I didn't realize there were two meta_tags.php!

Thanks...haven't fixed it yet, but I will soon.

25 May 2006, 2:13 AM
#4
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

atmh,

Now that you mention it, that does seem odd. I merely looked in my own 1.26 template and found those two. It is very possible that one is redundant - especially in ver 1.3+.

Let me check on that and will post findings later.

Either way, meta_tags.php is the huckleberry your are looking for.

25 May 2006, 2:40 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: meta tags for a product - title/tagline

This file is mearly loaded in the wrong place:
\includes\languages\CUSTOM\meta_tags.php

The correct location for the original is:
\includes\languages\english\meta_tags.php

And your override goes in the:

\includes\languages\english\your_template_dir\meta_tags.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 May 2006, 3:39 AM
#6
atmh avatar

atmh

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

First up, I forgot to mention, though it may have been assumed, I'm using v1.3.
The location of my override meta_tags.php:

\includes\languages\english\CUSTOM\meta_tags.php

(note that CUSTOM is, of course, not what it is really named, just a symbol for my custom template)

The part in meta_tags.php that defines title and tagline (lines 10-14):

// page title
define('TITLE', 'Mad House Minis');

// Site Tagline
define('SITE_TAGLINE', 'Home of the Grease Car Mini');

Once again, these definitions work on the rest of the website, the title and tagline show up properly on all the web pages, but when defining meta tags for specific products, it is different. If v1.3 uses only one meta_tags file, then it should work correctly, no?

Just for the hell of it, I tried putting my same meta_tags.php in the:
\includes\languages\CUSTOM\meta_tags.php
directory...didn't make a difference. I'm confused :(

25 May 2006, 4:14 AM
#7
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

\includes\languages\CUSTOM\meta_tags.php is a mistake in my earlier cart.

To edit meta tags for each product - Admin > Catalog > categories/products
Look for the black symbol at the far right and click on it. When you have product meta tags set the symbol is orange.

25 May 2006, 4:52 AM
#8
atmh avatar

atmh

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

yeah, I know how to change the meta tags for the product, I got that down good. But it automatically assigns the Title/Tagline based on meta_tags.php, and what I'm saying is that it is still doing it wrong: It's not using my meta_tags.php override (or so it seems).

a quote from the bottom of the form to fill out individual meta tags for products:

NOTE: The Site/Tagline is your defined definition for your site in the meta_tags.php file.

that's the stuff I'm having problems with, and as far as I know the meta_tags.php file is changed, as can be seen by the fact that the title of the website has been changed, which you can clearly see in your browser if you go to the web store ( http://store.madhouseminis.com ) by looking at the tool bar and seeing that it says "Mad House Minis, Home of the Grease Car Mini."

Hope that clears up the problem I'm having...and it's still not solved...:down:

25 May 2006, 1:29 PM
#9
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

Please check a few things.

  1. Make sure your custom folder (madhouseminis?) is spelled correctly every time.

  2. Make sure the \includes\languages\english\madhouseminis\meta _tags.php has the change in title that you want.

Are you wanting each product page to have a new title and tagline that is different from the site title/tagline?

In the product meta-tag you have boxes for title, keywords and description. You also have "Mark What the Product's Meta Tag Title Should Include:" Try saying YES to Product Name and Title and say NO to Title/Tagline.

Does that do what you want?

Sorry if I am being dense here.

hth

25 May 2006, 4:48 PM
#10
atmh avatar

atmh

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

Alright, screenshot time.
First of all, the title and tagline are working correctly in my meta_tags.php override for the website, as can be seen from this screenshot:

Now you can see when I was defining the meta tags for a product, the title/tagline are different now:

Now, I THINK those are both defined in the same place, yet it's working in one instance, yet not the other. So either I am mistaken and they're not defined in the same place, or something else is screwed up.

It's not enough to just mark it as "excluded" I want it to work properly.

Also, I haven't yet read anything on writing good meta tags, so I don't know if I got that part good/optimized yet. If you see something I did completely wrong while writing the actual meta tags, feel free to chime in :)

Thanks for the help, even if we haven't quite got this sorted yet.

25 May 2006, 10:37 PM
#11
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

The phrase "Zen Cart! The art of e-commmerce" only occurs in 2 place that I know of -

includes/languages/languages/english.php
includes/languages/english/meta_tags.php

Both of those should be in the overrides

includes/languages/languages/madhouseminis/english.php
includes/languages/english/madhouseminis/meta_tags.php

You should go to Admin > tools > developer's toolkit and search for "Zen Cart!" Put the phrase in the lower left box and select all files to search. See if you have other files than what I mentioned.

If not, it seems likely that on of the two files is not in the override, the filename/folder name is spelled wrong or you made edits in a different file. ( I have done all these by the way.)

When I look at the Pepper Pot Wheels though, the title says Pepper Pot Wheels.

This is what is in the page source -

<title>Pepper Pot Wheels Pepper Pot [Mini] - $599.00</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="keywords" content="pepperpot, pepper, pot, wheel, rrc109630, 109630 mad, house, minis, madhouse, classic, mini, grease car, madhouseminis.com, bits, land rover, cooper, austin, clubman, minor, sale, parts" /> <meta name="description" content="A set of pepper pot wheels for a classic mini. May fit other cars. 12 diameter, 4x100 lug pattern. " /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="authors" content="The Zen Cart™ Team and others" /> <meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com" /> <base href="http://store.madhouseminis.com/" />

What do you want to be different?

We'll get this eventually.

26 May 2006, 1:05 AM
#12
atmh avatar

atmh

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

First of all, isn't it supposed to be only one /languages for the english.php, not two?

aka:

includes/languages/madhouseminis/english.php

btw: my custom folder has always been madhouseminis, but everyone refers to them as "CUSTOM" so that's what I did, I figured possible security issues? Or just ease of representation for others who may have this problem.

Also, those instances are commented out in english.php...

Alright, so looking at the actual generated source is not something I ever did, probably should have thought of that...anywho...

In the admin when you're looking at the products, and you click on the little button that looks kind of like a bmw logo (roundel) to edit the meta tags it takes you to another page, on this page, at the top there is something that says:
"Mark What the Product's Meta Tag Title Should Include:"
And it has these little boxes with little radio buttons next to them that say "yes" or "no"
There is one little box that says "Title/Tagline." If I choose yes, it put's "Zen Cart! The art of eCommerce" in there, if I click no, it says "excluded" At the bottom of the page it instructs me to change the title/tagline in meta_tags.php, which I have done.
But, now, looking at the generated meta tags, it appears as if none of those little boxes with their little radio buttons actually do anything at all, at least, not that I can see. So now I am wondering about their actual function, and why the hell I can't find where to change that specific title/tagline. BTW: I have used the developers tool kit to search for it, still can't find it.

Thanks.

26 May 2006, 3:57 AM
#13
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

The /custom is used in a tutorial and seems to work well. Hard to mispell and easy to spot. Not a security issue that I am aware of.

I think we should bump this up to one of the devs.

My knowledge of the cart is usually limited to pointing people to tutorials for basic template setup. However, if you send me a pm or an email and attach the custom meta_tags.php and english.php I will be happy to look at them.

In the admin, the product meta-tag allows you to add the title/tagline from the whole site. It seems that is where you are getting "Zen Cart!..." Zen Cart! is the title and The Art of E-Commerce is the tagline default for the site. When you copy the english.php and meta_tags.php into the /custom folder and edit them, it should go away.

So, I am as confused as you.

More later.

26 May 2006, 4:58 AM
#14
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

Going back to the screen captures above. In my test shop for 1.3 (not live yet) I get the same Zen Cart! ... title/tagline in the admin when I preview the product meta-tag. I do have the title/tagline turned on and I get the customized version that is in the override file.

Let's get call the devs - Kim, Ajeh, Oracle, etc. help please.

Sorry I could not do more for you. I will keep an eye on this thread. If someone does not come along soon you may have to re-post and only ask about the title/tagline.

Good Luck.

26 May 2006, 5:01 AM
#15
whocaresanyway avatar

whocaresanyway

Suspended

Join Date:
May 2006
Posts:
66
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

what your seeing is called in the admin,
look in the developers toolkit and search for
title/tagline in the admin

you will find several places, thats just a place holder,
the actual meta tags and taglines are called from the meta_tags.php and are displayed properly on the catalog side,
If this bothers you go ahead and change it there are like 5 or 6 places

admin/includes/languages/english/document_general.php
is the start

if you look on the catalog side of your site,
Pick a product and view source.... you get
<meta name="keywords" content="pepperpot, pepper, pot, wheel, rrc109630, 109630 mad, house, minis, madhouse, classic, mini, grease car, madhouseminis.com, bits, land rover, cooper, austin, clubman, minor, sale, parts" />

so all is working properly

12 Jun 2006, 7:58 PM
#16
aspudden avatar

aspudden

Zen Follower

Join Date:
Dec 2004
Location:
Stockholm
Posts:
113
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

Have to keep eye on this one..

Employing version 1.3.X

30 Jun 2006, 10:09 PM
#17
jimmy_chen avatar

jimmy_chen

New Zenner

Join Date:
Jun 2006
Location:
New York City, USA
Posts:
3
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

I have to confirm atmh's finding on this issue and his screen shots.

I am also setting up my site and found that the product metatab default is not using the overwrite file and runs into the same issue as reported in this thread.

I have my own meta_tags.php in the overwrite dir, using my real tag, then mod the defaut with "test tag line". product->metatab icon->preview screen displays the "test tag line" and not my real tag line.

We might have found a bug.

1 Jul 2006, 12:14 AM
#18
atmh avatar

atmh

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

yeah, I believe I'm using the latest version, and I never got it to change.

29 Jul 2006, 2:58 PM
#19
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

Re: meta tags for a product - title/tagline

A fix (or at least a workaround) for the admin page title is provided in

http://www.zen-cart.com/forum/showthread.php?p=237410#post237410

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

29 Jul 2006, 5:33 PM
#20
lextechs avatar

lextechs

Zen Follower

Join Date:
Mar 2005
Location:
Tempe, AZ
Posts:
316
Plugin Contributions:
0

Re: meta tags for a product - title/tagline

The simple fix to this is if you want the tag/title to show your cutoms information, just over write the orginal meta_tag.php with your custom meta_tag.php, this will show the tag/and title in the adim section, when you edit the product's meta_tags. it will also show in your page source see here: http://lextechs.com/index.php?main_page=product_info&cPath=64&products_id=2609

of course you have to choose yes in the radio field.

Lextechs.com Powered By ZenCart