Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Linda's metatag contribution...


Guest

Recommended Posts

I'm using your metatag contribution, and it's great! But only 50 characters can be used in the tatle tag for each product. I know I can easily change that, but is there any reason why you did this? I know the title shouldn't be as long as the keywords, etc. but I would like to fit in 15 words or so, which I can't. Just looking for your thoughts, and thanks for the contribution!

Link to comment
Share on other sites

Hi:

 

I haven't seen that contribution. Can you tell me what it is called, and in which contributions category it is found? I've been wondering how to generate the metatags that I need to optimize my pages for search engines.

 

Thanks,

 

Jason

Link to comment
Share on other sites

I picked 50 as most the time that was sufficient in size.

 

I forget the cut off on titles on the window. But, you can use anything you like. I just did not want to make it huge and waste space.

Link to comment
Share on other sites

  • 1 year later...

I have installed this great contribution. The index.php page and the catagory page works great. It will show the site name and catagory name.

 

But for the product_info page, I don't know how to modify to show the product name. How could I do this?

 

Thanks.

Link to comment
Share on other sites

The product name is probably in the string but it is being cut off due to length. The code in includes/header_tags.php has the following for index.php:

 if (HTTA_DEFAULT_ON=='1') {
     $the_title= HEAD_TITLE_TAG_ALL . ' ' . HEAD_TITLE_TAG_DEFAULT . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name'];

but it should be something like:

 if (HTTA_DEFAULT_ON=='1') {
  $the_title=  $the_category['categories_name'] . $the_manufacturers['manufacturers_name'] . " - " . HEAD_TITLE_TAG_ALL . ' ' . HEAD_TITLE_TAG_DEFAULT;

Google only allows a certain number of characters in the title string (60 or 80, I can't recall ATM). If you go over that it is cut off so placing the product description at the end of the string is useless.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 2 weeks later...
Anyone know how to reorder the tag placement ?

 

Currently

1. Description

2. Keywords

3. Title

 

Want

1. Title

2. Keywords

3. Description

 

This will improve SEO.

 

Please help.

 

Thanks,

 

Brad

Amazing what cocaine will do to your programming!! WHoo hoO!

 

echo ' <title>' . $the_title . '</title>' . "\n";

echo ' <META NAME="Keywords" CONTENT="' . $the_key_words . '">' . "\n";

echo ' <META NAME="Description" Content="' . $the_desc . '">' . "\n";

 

Change that at the end of header_tags.php and it will alter the output order in your header!

 

Quote:

Break it, you have nothing else to do.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...