Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Meta tags/keywords


Guest

Recommended Posts

Posted

Hi everyone,

 

Could you please tel me were Can I add meta tags and keywords. Can you be specific in witch file? Thanks a lot

Posted

If you have a custom template, ask your template designer. If you're using the standard osCommerce template, pretty much every "*.php" file in the "catalog" directory will need to be modified.

 

If you're looking to insert meta tags to prove ownership of the site, then put it in catalog/index.php, right after this line:

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

Check out Chad's News.

Posted

Hi everyone,

 

Could you please tel me were Can I add meta tags and keywords. Can you be specific in witch file? Thanks a lot

 

I am using a standard template. Can you be more specefic and witch file? also cau you tel me the path? thanks a lot.

Posted

Let me make sure we're on the same page here. You want to insert <meta> tags into the page HTML, right?

Check out Chad's News.

Posted

Let me make sure we're on the same page here. You want to insert <meta> tags into the page HTML, right?

yes. so google and yahoo can crowled my web site.

Posted

Hi everyone,

 

Could you please tel me were Can I add meta tags and keywords. Can you be specific in witch file? Thanks a lot

You can't just add meta tag code to the files since oscommerce is a dynamic shop, meaning one file is used for many pages. Well, you can do that but it would be a waste of time, for the most part. The correct way to handle this is with the installation of a meta tags contribution. I recommend Header Tags SEO but there are others available.

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

Posted

You can't just add meta tag code to the files since oscommerce is a dynamic shop, meaning one file is used for many pages. Well, you can do that but it would be a waste of time, for the most part. The correct way to handle this is with the installation of a meta tags contribution. I recommend Header Tags SEO but there are others available.

Thanks for the fast response.

Posted

did google doesn't have to crawl my web site?

Posted
Posted

yes. so google and yahoo can crowled my web site.

Uh, search engines will crawl your site, with or without <meta> tags. Adding a "keywords" <meta> tag won't help all that much (and may even hurt, if it contains bogus information*), as search engines have learned to ignore that tag. Add a "description" <meta> tag is a bit helpful, to give some reasonable text to display when your page summary is shown in the search results, but it won't do a thing to improve ranking.

 

* Your site sells Nike shoes. You put Puma, Adidas, PF Flyer, and Keds keywords in the tag, to attract people looking for those brands. When Google finds you doing this "hijacking" of keywords, they'll nail you.

Posted

Uh, search engines will crawl your site, with or without <meta> tags. Adding a "keywords" <meta> tag won't help all that much (and may even hurt, if it contains bogus information*), as search engines have learned to ignore that tag. Add a "description" <meta> tag is a bit helpful, to give some reasonable text to display when your page summary is shown in the search results, but it won't do a thing to improve ranking.

 

* Your site sells Nike shoes. You put Puma, Adidas, PF Flyer, and Keds keywords in the tag, to attract people looking for those brands. When Google finds you doing this "hijacking" of keywords, they'll nail you.

Can you tel me please in witch file can I add <meta> tags description. Please be specefic. thanks a lot.

Posted

Can you tel me please in witch file can I add <meta> tags description. Please be specefic. thanks a lot.

 

Check Jack's post above. You will need meta tags mostly on index.php and product_info.php

Posted

In index.php toward the top there should be codes that look like this:

 

<title><?php echo INDEX_META_TITLE; ?></title>

<meta name="description" content=" <?php echo INDEX_META_DESCRIPTION; ?> ">

<meta name="keywords" content=" <?php echo INDEX_META_KEYWORDS; ?>">

 

Then in includes/languages/english.php you should have:

 

// index metas

define('INDEX_META_TITLE', ' Add your title here');

define('INDEX_META_DESCRIPTION', ' add your description here ');

define('INDEX_META_KEYWORDS', ' add your keywords here');

 

 

Add your title ,description and keywords where it says above. Remember to always back up your work.

Posted

In index.php toward the top there should be codes that look like this:

 

<title><?php echo INDEX_META_TITLE; ?></title>

<meta name="description" content=" <?php echo INDEX_META_DESCRIPTION; ?> ">

<meta name="keywords" content=" <?php echo INDEX_META_KEYWORDS; ?>">

 

Then in includes/languages/english.php you should have:

 

// index metas

define('INDEX_META_TITLE', ' Add your title here');

define('INDEX_META_DESCRIPTION', ' add your description here ');

define('INDEX_META_KEYWORDS', ' add your keywords here');

 

 

Add your title ,description and keywords where it says above. Remember to always back up your work.

 

 

 

 

could you please give me the path for the files. I couldn't find the files with the information you mentioned?

Posted

could you please give me the path for the files. I couldn't find the files with the information you mentioned?

Posted

could you please give me the path for the files. I couldn't find the files with the information you mentioned?

 

 

Is your store in a root or a subfolder? If it's in the root, click public_html then scroll down to index.php press edit

If its a sub folder click public_html then click catalog (or whatever file name you picked for your store)then scroll down to index.php press edit..

in index.php under <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

you should see:

<title><?php echo INDEX_META_TITLE; ?></title>

<meta name="description" content=" <?php echo INDEX_META_DESCRIPTION; ?> ">

<meta name="keywords" content=" <?php echo INDEX_META_KEYWORDS; ?>">

 

If not copy and paiste the above code there.

 

 

Then for includes/languages/english.php

 

If it's in the root, click public_html then click includes then click languages then edit english.php

If its a sub folder click public_html then click catalog (or whatever file name you picked for your store)then click includes then click languages then edit english.php

 

 

and in english.php under: define('HEADER_TITLE_LOGIN', 'Log In');

you shoud see:

// index metas

define('INDEX_META_TITLE', ' Add your title here');

define('INDEX_META_DESCRIPTION', ' add your description here ');

define('INDEX_META_KEYWORDS', ' add your keywords here');

 

if not copy and paiste the above code, but add your title,description and keywords where it says add.

 

Always back up your work. This is whats in my folders and my meta tags work fine. Good luck

  • 3 months later...
Posted

Is your store in a root or a subfolder? If it's in the root, click public_html then scroll down to index.php press edit

If its a sub folder click public_html then click catalog (or whatever file name you picked for your store)then scroll down to index.php press edit..

in index.php under <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

you should see:

<title><?php echo INDEX_META_TITLE; ?></title>

<meta name="description" content=" <?php echo INDEX_META_DESCRIPTION; ?> ">

<meta name="keywords" content=" <?php echo INDEX_META_KEYWORDS; ?>">

 

If not copy and paiste the above code there.

 

 

Then for includes/languages/english.php

 

If it's in the root, click public_html then click includes then click languages then edit english.php

If its a sub folder click public_html then click catalog (or whatever file name you picked for your store)then click includes then click languages then edit english.php

 

 

and in english.php under: define('HEADER_TITLE_LOGIN', 'Log In');

you shoud see:

// index metas

define('INDEX_META_TITLE', ' Add your title here');

define('INDEX_META_DESCRIPTION', ' add your description here ');

define('INDEX_META_KEYWORDS', ' add your keywords here');

 

if not copy and paiste the above code, but add your title,description and keywords where it says add.

 

Always back up your work. This is whats in my folders and my meta tags work fine. Good luck

 

FYI I just added this and it worked great. thanks!

Posted

FYI I just added this and it worked great. thanks!

Technically, it works. But for the purpose of SEO, it is marginal, at best. The index.php file handles multiple pages so using that code means the title and tags are the same for each page. So all of your categories and manufacturer pages will have the same title and tags and, in most case, they won't apply as they should. So if you want a quick and dirty way to add meta tag code, that will work. But if you want to give your pages the best chance of listing well, you need to install code that will add the data correctly.

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

Posted

I don't know if what I did was right but...

I started out with a index.html page that leads to my index.php page (after I hyperlink it correctly when I am finished).

What I planned on doing is the usual meta tags on the home page to lure the customers in. Then they can go to the store via link.

Home Page

Store Page

You're never too old to learn.

Even an old fart like myself loves learn and be creative.

?>if (empty($coffee)) {$coffee=new coffee();}<?

Archived

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

×
×
  • Create New...