Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Meta Tags info


scorpio33

Recommended Posts

Will someone please tell me how to edit the Meta Tag info which can be seen while using view source to look at the Catalog/index.php page.

 

When i use view source to look at my index.php page it does not show the same text as the control panel editor. I don't see any Meta Tag info.

 

This is what i see looking at the Index.php page with view source:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<!-- BOF: Generated Meta Tags -->

<title> - Games Real Cheap : </title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<META NAME="Description" Content="Games Real Cheap : What's New Here? - PC Games Video Games and Software Games Real Cheap : What's New Here? - PC games Video Games and Software">

<META NAME="Keywords" CONTENT="PC games Video Games and software What's New Here? PC Games Video Games and Software What's New Here?">

<META NAME="Reply-to" CONTENT="[email protected]">

<META NAME="Robots" CONTENT="index,follow">

<!-- EOF: Generated Meta Tags -->

 

This is what i see looking at the Index.php page with the control panel editor

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

// the following cPath references come from application_top.php

$category_depth = 'top';

if (isset($cPath) && tep_not_null($cPath)) {

$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");

$cateqories_products = tep_db_fetch_array($categories_products_query);

if ($cateqories_products['total'] > 0) {

$category_depth = 'products'; // display products

} else {

$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");

$category_parent = tep_db_fetch_array($category_parent_query);

if ($category_parent['total'] > 0) {

$category_depth = 'nested'; // navigate through the categories

} else {

$category_depth = 'products'; // category has no products, but display the 'no products' message

}

}

}

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<?php

// BOF: WebMakers.com Changed: Header Tag Controller v1.0

// Replaced by header_tags.php

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

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

<?php

}

// EOF: WebMakers.com Changed: Header Tag Controller v1.0

?>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

Link to comment
Share on other sites

You have a contribution installed that dynamically changes the title and meta tags. I'm not sure which one it is, other than I know it is not Header Tags unless the code was edited. So you will need to find the file for that contribution that controls them. It should be in the english directory.

 

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 have a contribution installed that dynamically changes the title and meta tags.  I'm not sure which one it is, other than I know it is not Header Tags unless the code was edited.  So you will need to find the file for that contribution that controls them. It should be in the english directory.

 

Jack

Thank you for your help. I found and modified the Header Tags. I should be able to get a better placement with the search engines now :D

Link to comment
Share on other sites

It depedns on the contribution. If you are talking about header Tags, then it is header_tags.php. For the other contributions, you will need to read the instructions.

 

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...