Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Meta Tags Showing Product Model in Title

Meta Tags Showing Product Model in Title

Locked

Views: 2,681

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
24 Apr 2007, 3:15 PM
#1
bgroup99 avatar

bgroup99

Zen Follower

Join Date:
Aug 2006
Posts:
197
Plugin Contributions:
0

Meta Tags Showing Product Model in Title

Hi,

I have read the posts about editing metatags.php so that the model number doesn't show. I have edited my metatags.php file to this:

      if (META_TAG_INCLUDE_MODEL == '1' && zen_not_null($product_info_metatags->fields['products_model'])) {
        $meta_products_name = $product_info_metatags->fields['products_name'];
		//$meta_products_name = $product_info_metatags->fields['products_name'] . ' [' . $product_info_metatags->fields['products_model'] . ']';
      } else {
        $meta_products_name = $product_info_metatags->fields['products_name'];
      }
      $meta_products_name = zen_clean_html($meta_products_name);

As specified in the posts I've read and when you go to a page such as http://vapenow.com/index.php/Volcano+Package+-+Mount+St.+Helens-p-114/ the model number still shows. What am I doing wrong?

Thanks in advance for any assistance!

Nate

24 Apr 2007, 4:37 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Meta Tags Showing Product Model in Title

You shouldn't need to edit anything to get the model out of the header. Look in admin > Catalog > Product Types > Product-General > edit layout > Show Metatags Title Default - Product Model.

26 Apr 2007, 5:11 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Meta Tags Showing Product Model in Title

Or peek in the Configuration ... Product Info ...

Meta Tags - Include Product Model in Title
Do you want to include the Product Model in the Meta Tag Title?

0= off 1= on

26 Apr 2007, 7:10 PM
#4
bgroup99 avatar

bgroup99

Zen Follower

Join Date:
Aug 2006
Posts:
197
Plugin Contributions:
0

Re: Meta Tags Showing Product Model in Title

gjh42:

You shouldn't need to edit anything to get the model out of the header. Look in admin > Catalog > Product Types > Product-General > edit layout > Show Metatags Title Default - Product Model.

Ajeh:

Or peek in the Configuration ... Product Info ...

Hi and thanks for the suggestions. I tried both of these, and neither got the model number out of the header. See, http://vapenow.com/index.php/HerbalAire+Vaporizer-p-84/

I tried clearing my cache and even restarting my browser. Any idea what I am doing wrong?

Thanks for your help,

Nate

26 Apr 2007, 7:13 PM
#5
bgroup99 avatar

bgroup99

Zen Follower

Join Date:
Aug 2006
Posts:
197
Plugin Contributions:
0

Re: Meta Tags Showing Product Model in Title

Figured out it's because I'm using custom meta tags... Thanks for the help!

26 Apr 2007, 7:16 PM
#6
bgroup99 avatar

bgroup99

Zen Follower

Join Date:
Aug 2006
Posts:
197
Plugin Contributions:
0

Re: Meta Tags Showing Product Model in Title

Which leads to my next question:

If I have defined custom meta tags, is there anyway I can change all products meta tags settings to not include the model number at once? An SQL command maybe?

Thanks,

Nate

4 May 2007, 1:37 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Meta Tags Showing Product Model in Title

Yeps ... sure is ... :smartalec:

4 May 2007, 1:41 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Meta Tags Showing Product Model in Title

Betcha thought I'd tell you, eh? :cool:

Okay ... I will be nice ...

Backup your database ...

In the Tools ... Insert SQL Patches ...

To turn off products_model on all customized meta tags

UPDATE products SET metatags_model_status = 0;

For new products you can change the default setting in:
Catalog ... Product Type ...
Edit Layout

Show Metatags Title Default - Product Model
Display Product Model in Meta Tags Title 0= off 1= on

And, then you can maintain these as you like from that point on ... on a per Product basis ...

14 May 2007, 9:40 PM
#9
bgroup99 avatar

bgroup99

Zen Follower

Join Date:
Aug 2006
Posts:
197
Plugin Contributions:
0

Re: Meta Tags Showing Product Model in Title

Thanks for your reply. Helpful as always! :smile: