Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Store Name, Item name and model in title of website...


Guest

Recommended Posts

Hello all. I'm not sure where I found this little snipplet, but I've changed the title header of my product_info.php page to show this title:

Store Name: Item name [model #].

 

Here is the change to my product_info.php:

 

 
/*  OSC copyright info starts/ends here  */

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);
[b][color="#FF0000"]
 $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
 $product_check = tep_db_fetch_array($product_check_query);
?>
<?php
$product_info_query = tep_db_query("select pd.products_name, pd.products_description, p.products_model from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
$product_info = tep_db_fetch_array($product_info_query);
$products_model = $product_info['products_model'];
$products_name = $product_info['products_name'];
$products_description = $product_info['products_description'];
?>



<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE . ': ' . $products_name . ' [ ' . $products_model . ' ] '; ?></title>[/b][/color] 

 

Hopefully this helps others out there.

 

I'd really be interested in a snipplet that would allow me to put the manufacturer in the title as well... Any other suggestion would be great!

 

Good luck all

Link to comment
Share on other sites

Header Tags will allow you to do that, and more. Also, it is almost always a mistake to include the store name in the title. I suggest you remove that if you are serious about optiizing your shop.

 

Jack

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

...it is almost always a mistake to include the store name in the title. I suggest you remove that if you are serious about optiizing your shop.

 

Jack

 

Could you eleberate more on that please? why?

Link to comment
Share on other sites

The first thing the search engines look at on entering a page of your site is the title in the browser. They consider that first word or phase to be the most important and that it represents the page. If your store name is branded, like EBay or Amazon, then it is good to have the name there. But if your store name is Bob's Fish and Tackle, it is very unlikely that anyone is searching for that and it woul donly serve to take away from what the page is really about.

 

Jack

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The first thing the search engines look at on entering a page of your site is the title in the browser. They consider that first word or phase to be the most important and that it represents the page. If your store name is branded, like EBay or Amazon, then it is good to have the name there. But if your store name is Bob's Fish and Tackle, it is very unlikely that anyone is searching for that and it woul donly serve to take away from what the page is really about.

 

Jack

 

I think most ppl stores names are not as generic as Bob's Fish and tackle, and actually having the naem of your site as apart of the title actually helps your site ranking especially if someone is trying to search your site by name and not products. What really matters is the meta tags on a persons site.

 

Its basically Web Design 101

Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

Link to comment
Share on other sites

I think most ppl stores names are not as generic as Bob's Fish and tackle, and actually having the naem of your site as apart of the title actually helps your site ranking especially if someone is trying to search your site by name and not products. What really matters is the meta tags on a persons site.

 

Its basically Web Design 101

I totally disagree with this. It doesn't matter how generic the name is, it is very unlikley that anyone is searching for it. Meta tags help but are not as important as the title and both are only important if the text on the page supports them.

 

Jack

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I totally disagree with this. It doesn't matter how generic the name is, it is very unlikley that anyone is searching for it. Meta tags help but are not as important as the title and both are only important if the text on the page supports them.

 

Jack

 

 

It is not Web 101 any longer.

Listen to Jack.

The title tag is the most important tag. Most meta are ignored.

Tg

Link to comment
Share on other sites

If i had it like "Store name - Product Name" then wouldnt it come up for anyone searching for that product or the store name?

Link to comment
Share on other sites

If i had it like "Store name - Product Name" then wouldnt it come up for anyone searching for that product or the store name?
When you have a title like that, the emphasis is put on "Store name." Use one of the online keyword search tools and see how many people are searching for the name of your site. If there are at least 50,000 searches (arbitraily chosen), then it won't hurt you to use it. If it is 10 searches, then it will.

 

Jack

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

You could but it is not about making everyone happy. The purpose of changing the title should be to improve your position in the search engine listings. If you put something there that is not going to help the site, and may even hurt it, so that you get more traffic and increase sales, why have a web site?

 

Jack

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

so if you don't put your company name in the title, or the product name or whatever, what DO you put in there to get better seo? I mean if you just drop random words that describe your products so search engines can categorize your site better, it looks pretty unprofessional. I would much rather have "skins game clothing" in my title then golf, shirts, accesories, etc.

Link to comment
Share on other sites

Picking out the proper keywords for a page is the most important part of SEO. Many sites, probably most, do this incorrectly. They will put the store name in the title and/or pick keywords based on what they think applies to their site. You have to investigate the keywords to be sure they will bring in the traffic. According to Overture, the number of searches done last month on "skins game clothing" was 0. So if that is a chose keyphase for your site, how may sales do you think you will make off of the traffic generated by it?

 

Jack

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...