Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding META Tag


the man

Recommended Posts

Posted

Hi everyone, i'm new to OScommerce.. currently i wanted to add in the below tags, but do not know which files to add in and where to add in !!

Do i need to paste these 'meta tag' to all my product page or just the main index.php in order for search engine to crawl.

 

<meta name="keywords" CONTENT=" apple12345 ">

<meta name="description" CONTENT=" apple12345 ">

 

please enlighten me.. thanksSss

Posted

Hi everyone, i'm new to OScommerce.. currently i wanted to add in the below tags, but do not know which files to add in and where to add in !!

Do i need to paste these 'meta tag' to all my product page or just the main index.php in order for search engine to crawl.

 

<meta name="keywords" CONTENT=" apple12345 ">

<meta name="description" CONTENT=" apple12345 ">

 

please enlighten me.. thanksSss

 

There are a number of meta tag contributions . . if your server is running PHP5.2+ and you would like the tags generated dynamically ( with no work from you ) and you would like a super fast easy install I recommend KissMT

Posted

There are a number of meta tag contributions . . if your server is running PHP5.2+ and you would like the tags generated dynamically ( with no work from you ) and you would like a super fast easy install I recommend KissMT

 

Thanks alot FWR Media... i had downloaded it.. my directory does not have "catalog" folder, so where do i place the "upload" files to !!

i had attact a picture of my FTP DIR printscreen, hope this will gave me some guide..

 

FTP print screen

Posted

If your store is not inside the catalog folder, remove this word from the instructions,

where it says

catalog / includes / modules for instance

you add it to

includes / modules

Easy really

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

thanks FIMBLE

 

i had it done, by the way, both of my files are in the

/public_html/index.php & /public_html/product_info.php

 

because i do not have the /public_html/catalog/index.php

so now do i have to edit the "/public_html/index.php" and the "/public_html/product_info.php" with the below !!

 

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

Replace with ...

 

<?php include_once DIR_WS_MODULES . 'kiss_meta_tags/kiss_meta_tags.php'; ?>

Posted

thanks FIMBLE

 

i had it done, by the way, both of my files are in the

/public_html/index.php & /public_html/product_info.php

 

because i do not have the /public_html/catalog/index.php

so now do i have to edit the "/public_html/index.php" and the "/public_html/product_info.php" with the below !!

 

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

Replace with ...

 

<?php include_once DIR_WS_MODULES . 'kiss_meta_tags/kiss_meta_tags.php'; ?>

 

Yup

Posted

Yup

 

 

OKies... now i had edit both

"/public_html/index.php" and the "/public_html/product_info.php" with

<?php include_once DIR_WS_MODULES . 'kiss_meta_tags/kiss_meta_tags.php'; ?>

 

how do i know that its working!! i login osCommerce webby, under which function should i key in the meta tag description and keywords?? below are the print screen

 

print screen of my osCommerce

Posted

OKies... now i had edit both

"/public_html/index.php" and the "/public_html/product_info.php" with

<?php include_once DIR_WS_MODULES . 'kiss_meta_tags/kiss_meta_tags.php'; ?>

 

how do i know that its working!! i login osCommerce webby, under which function should i key in the meta tag description and keywords?? below are the print screen

 

print screen of my osCommerce

 

You don't need to do anything . . it will already be working.

 

Go to a product ( front end ) and look at the very top of your browser .. it should have a product title.

 

View source using your browser and you will see near the top meta description keywords and canonical element.

Posted

i do not need to do anything!! thats great.. but when i click on the product, the IE browser top didn't show the item description..

did i replace the right code, i had attach both the "/public_html/index.php" and the "/public_html/product_info.php"

 

 

print screen

 

 

Below are the 1st few line of "/public_html/index.php"

 

 

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

 

<link href="/www.your-lifestore.com//favicon.ico" rel="icon" type="image/x-icon" />

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

CHARSET; ?>">

 

<?php include_once DIR_WS_MODULES . 'kiss_meta_tags/kiss_meta_tags.php'; ?>

 

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

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

 

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

 

Below are the 1st few line of "/public_html/product_info.php"

 

 

<?php

/*

$Id: product_info.php,v 1.97 2003/07/01 14:34:54 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');

 

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

 

$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);

?>

<!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; ?>">

<?php include_once DIR_WS_MODULES . 'kiss_meta_tags/kiss_meta_tags.php'; ?>

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

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

<script language="javascript"><!--

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')

}

//--></script>

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

<?php

if ($product_check['total'] < 1) {

?>

Posted

It is impossible for it to do nothing.

 

If it was installed correctly you would get meta data, if not you would get errors.

 

Perhaps you have STS installed or something?

Posted

It is impossible for it to do nothing.

 

If it was installed correctly you would get meta data, if not you would get errors.

 

Perhaps you have STS installed or something?

 

 

You are right man, there's a folder named as what you mention STS, may i know what is this STS !!

And is this STS stopping kiss_meta_tags from working correctly !!

(My apologise, i recently took over this osCommerce online store from someone who cease operation, thats why i'm fresh into oscommerce )

 

/public_html/includes/modules/sts

/public_html/includes/modules/sts_inc

Posted

You are right man, there's a folder named as what you mention STS, may i know what is this STS !!

And is this STS stopping kiss_meta_tags from working correctly !!

(My apologise, i recently took over this osCommerce online store from someone who cease operation, thats why i'm fresh into oscommerce )

 

/public_html/includes/modules/sts

/public_html/includes/modules/sts_inc

 

Yes it will be STS.

 

You are better off asking in the STS support forum as it's nothing to do with KissMT.

Archived

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

×
×
  • Create New...