Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

Hello

I'm new to this and i have some problems installing HT add-on.

First of all, i have RC2.2 with a free template from TemplateMonster.

I tried to follow the steps in the Install_Catalog but i'm stuck at step 3 2nd instruction. I cant find any code containing "HEADING_TITLE" so i cant go forward. I attach the index.php here so you can see the problem. If anyone can help me i would be very gratefull.

Thank you.

 

 

 

<?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 (c) 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
/*** Begin Header Tags SEO ***/
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
 require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
 <title><?php echo TITLE; ?></title>
<?php
}
/*** End Header Tags SEO ***/
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<style type="text/css">
<!--
body {
background-color: #FFF;
}
-->
</style></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="0" cellpadding="0">
 <tr>
   <td valign="top" class="col_left">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </td>
<!-- body_text //-->
<?php
 if ($category_depth == 'nested') {
   $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
   $category = tep_db_fetch_array($category_query);
?>
   <td width="100%" class="col_center">


<?php tep_draw_heading_top();?>

<?php new contentBoxHeading_ProdNew($info_box_contents);?>

<?php tep_draw_heading_top_3();?>


				<table cellpadding="0" cellspacing="0" border="0"><tr><td height="6"></td></tr></table>
				<table border="0" cellspacing="0" cellpadding="0" align="center" class="box_width_cont product">
					<tr>
<?php
if (isset($cPath) && strpos('_', $cPath)) {
// check to see if there are deeper categories within the current category
  $category_links = array_reverse($cPath_array);
  for($i=0, $n=sizeof($category_links); $i<$n; $i++) {
	$categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");
	$categories = tep_db_fetch_array($categories_query);
	if ($categories['total'] < 1) {
	  // do nothing, go through the loop
	} else {
	  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
	  break; // we've found the deepest category the customer is in
	}
  }
} else {
  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
}

$number_of_categories = tep_db_num_rows($categories_query);
$rows = 0;
while ($categories = tep_db_fetch_array($categories_query)) {

  $rows++;
  $cPath_new = tep_get_path($categories['categories_id']);

$p_pic_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a>';

$p_name_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a>';

  $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
  echo '               

	<td width="' . $width . '">'.tep_draw_prod_top().'
			<table cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td class="vam" style="height:43px "><span>'.$p_name_sub.'</span></td>
				</tr>
			</table>'.tep_draw_prod_pic_top().''.$p_pic_sub.''.tep_draw_prod_pic_bottom().'
	'.tep_draw_prod_bottom().'</td>
  ' . "\n";
			  if ($col!=(MAX_DISPLAY_CATEGORIES_PER_ROW-1)){
			  echo '
					<td class="bg_line_y">'.tep_draw_separator('spacer.gif', '32', '1').'</td>					
					';
			  }
			 else{	

  if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
	echo '              
</tr><tr><td colspan="'.(MAX_DISPLAY_CATEGORIES_PER_ROW + MAX_DISPLAY_CATEGORIES_PER_ROW -1).'">'.tep_draw_separator('spacer.gif', '1', '10').'</td></tr>' . "\n";
	echo '              <tr>' . "\n";
  }
}
if ($col==MAX_DISPLAY_CATEGORIES_PER_ROW-1){
$col=0;
}else{
$col++;
}
}	

// needed for the new products module shown below
$new_products_category_id = $current_category_id;
?>					

			</table>

<?php tep_draw_heading_bottom_3();?>

<?php tep_draw_heading_bottom();  ?>

<?php /*  tep_draw_separate();  */ ?>  <!--  /////////  -->

<?php tep_draw_heading_top();  ?>

<?php new contentBoxHeading_WHATS_NEW($info_box_contents, true, false);?>

<?php tep_draw_heading_top_3();?>			

		<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>

<?php tep_draw_heading_bottom_3();?>

<?php tep_draw_heading_bottom();?>		

</td>
<?php
 } elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {
// create column list
   $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
                        'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
                        'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
                        'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
                        'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
                        'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
                        'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,
                        'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

   asort($define_list);

   $column_list = array();
   reset($define_list);
   while (list($key, $value) = each($define_list)) {
     if ($value > 0) $column_list[] = $key;
   }

   $select_column_list = '';

   for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
     switch ($column_list[$i]) {
       case 'PRODUCT_LIST_MODEL':
         $select_column_list .= 'p.products_model, ';
         break;
       case 'PRODUCT_LIST_NAME':
         $select_column_list .= 'pd.products_name, ';
         break;
       case 'PRODUCT_LIST_MANUFACTURER':
         $select_column_list .= 'm.manufacturers_name, ';
         break;
       case 'PRODUCT_LIST_QUANTITY':
         $select_column_list .= 'p.products_quantity, ';
         break;
       case 'PRODUCT_LIST_IMAGE':
         $select_column_list .= 'p.products_image, ';
         break;
       case 'PRODUCT_LIST_WEIGHT':
         $select_column_list .= 'p.products_weight, ';
         break;
     }
   }

// show the products of a specified manufacturer
   if (isset($HTTP_GET_VARS['manufacturers_id'])) {
     if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
// We are asked to show only a specific category
       $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "'";
     } else {
// We show them all
       $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'";
     }
   } else {
// show the products in a given categorie
     if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
// We are asked to show only specific catgeory
       $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";
     } else {
// We show them all
       $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";
     }
   }

   if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('^[1-8][ad]$', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {
     for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
       if ($column_list[$i] == 'PRODUCT_LIST_NAME') {
         $HTTP_GET_VARS['sort'] = $i+1 . 'a';
         $listing_sql .= " order by pd.products_name";
         break;
       }
     }
   } else {
     $sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);
     $sort_order = substr($HTTP_GET_VARS['sort'], 1);

     switch ($column_list[$sort_col-1]) {
       case 'PRODUCT_LIST_MODEL':
         $listing_sql .= " order by p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
         break;
       case 'PRODUCT_LIST_NAME':
         $listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : '');
         break;
       case 'PRODUCT_LIST_MANUFACTURER':
         $listing_sql .= " order by m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
         break;
       case 'PRODUCT_LIST_QUANTITY':
         $listing_sql .= " order by p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
         break;
       case 'PRODUCT_LIST_IMAGE':
         $listing_sql .= " order by pd.products_name";
         break;
       case 'PRODUCT_LIST_WEIGHT':
         $listing_sql .= " order by p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
         break;
       case 'PRODUCT_LIST_PRICE':
         $listing_sql .= " order by final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
         break;
     }
   }
?>
   <td width="100%" class="col_center">

<?php tep_draw_heading_top();?>		





<?php
// optional Product List Filter
/*      if (PRODUCT_LIST_FILTER > 0) {
     if (isset($HTTP_GET_VARS['manufacturers_id'])) {
       $filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name";
     } else {
       $filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name";
     }
     $filterlist_query = tep_db_query($filterlist_sql);
     if (tep_db_num_rows($filterlist_query) > 1) {
       echo '            <td align="center" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' ';
       if (isset($HTTP_GET_VARS['manufacturers_id'])) {
         echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']);
         $options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));
       } else {
         echo tep_draw_hidden_field('cPath', $cPath);
         $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));
       }
       echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']);
       while ($filterlist = tep_db_fetch_array($filterlist_query)) {
         $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']);
       }
       echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"');
       echo tep_hide_session_id() . '</form></td>' . "\n";
     }
   }
 */
// Get the right image for the top-right
   $image = DIR_WS_IMAGES . 'table_background_list.gif';
   if (isset($HTTP_GET_VARS['manufacturers_id'])) {
     $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
     $image = tep_db_fetch_array($image);
     $image = $image['manufacturers_image'];
   } elseif ($current_category_id) {
     $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
     $image = tep_db_fetch_array($image);
     $image = $image['categories_image'];
   }
?>
     <?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?>

<?php tep_draw_heading_bottom_3();?>

<?php tep_draw_heading_bottom();?>		

  </td>
<?php
 } else { // default page
?>
   <td width="100%" class="col_center">



<?php /*  require(DIR_WS_BOXES . 'panel_top.php');  */ ?>

<?php tep_draw_heading_top();?>

<?php /*  new contentBoxHeading_ProdNew($info_box_contents);  */  ?>

<?php tep_draw_heading_top_3();?>


	<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>
	<?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?>


<?php tep_draw_heading_bottom_3();?>

<?php tep_draw_heading_bottom();?>		

	</td>
<?php
 }
?>
<!-- body_text_eof //-->
   <td class="col_right">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //--></body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Share this post


Link to post
Share on other sites

I'm new to this and i have some problems installing HT add-on.

First of all, i have RC2.2 with a free template from TemplateMonster.

I tried to follow the steps in the Install_Catalog but i'm stuck at step 3 2nd instruction. I cant find any code containing "HEADING_TITLE" so i cant go forward. I attach the index.php here so you can see the problem. If anyone can help me i would be very gratefull.

Those templates, especially ones by templatemonster, are nortorius for destroying the oscommerce code. Header Tags can be installed but not by following the instructions (for the shop side). Unfortunately, since the templates don't follow a pattern, there are too many coding possibilities so support for those is not offered. You will need to figure out how to mkae the changes or pay someone to do it for you.

Share this post


Link to post
Share on other sites

Those templates, especially ones by templatemonster, are nortorius for destroying the oscommerce code. Header Tags can be installed but not by following the instructions (for the shop side). Unfortunately, since the templates don't follow a pattern, there are too many coding possibilities so support for those is not offered. You will need to figure out how to mkae the changes or pay someone to do it for you.

Thank you for your replay. I will try to figure it out.

Share this post


Link to post
Share on other sites

Can I just say that JACK YOU ARE THE MAN !

 

This is hands down the single best contribution there is in regards to SEO.

Not only did my rankings improve drastically but so did online sales by well over 100%

 

Thank-you so much mate.

Share this post


Link to post
Share on other sites

Installed contrib works like a charm for product pages, only problem is the index is not taking the changes. In page control it remembers the changes I made, but default oscom listings still come up in google.

In test it only has the product page listed. So cant test index.

Have trekked through intall and cant find where i have made a mistake. Any ideas's on how to troubleshoot greatly appreciated

Share this post


Link to post
Share on other sites

Hi,

 

I have a problem with the tags, and as I am kind of newbie on this I am posting it here and hope you can help me:

 

I have set up the default tags for my language and they properly appear on all the needed pages.

 

I have created some categories and products, and during creation I have set up all the needed tags.

 

On the page control, for product_info.php I have checked to include the Product and Category, but when a view a product only the default tags are displayed. Also the content language is wrong in the tags (meta http-equiv="Content-Language" content="en-us" >)

 

The product can be viewed at Produs

 

What have I done wrong?

 

Thank you

Share this post


Link to post
Share on other sites

Hi,

 

I have a problem with the tags, and as I am kind of newbie on this I am posting it here and hope you can help me:

 

I have set up the default tags for my language and they properly appear on all the needed pages.

 

I have created some categories and products, and during creation I have set up all the needed tags.

 

On the page control, for product_info.php I have checked to include the Product and Category, but when a view a product only the default tags are displayed. Also the content language is wrong in the tags (meta http-equiv="Content-Language" content="en-us" >)

 

The product can be viewed at Product

 

What have I done wrong?

 

Thank you

Share this post


Link to post
Share on other sites

Can I just say that JACK YOU ARE THE MAN !

 

This is hands down the single best contribution there is in regards to SEO.

Not only did my rankings improve drastically but so did online sales by well over 100%

 

Thank-you so much mate.

You're welcome. :) I'm very pleased it helped your site.

Share this post


Link to post
Share on other sites

Installed contrib works like a charm for product pages, only problem is the index is not taking the changes. In page control it remembers the changes I made, but default oscom listings still come up in google.

In test it only has the product page listed. So cant test index.

Have trekked through intall and cant find where i have made a mistake. Any ideas's on how to troubleshoot greatly appreciated

If the title and tags are present in admin and not in the shop, then there is something wrong on the shop site, or the settings. If you view source for the home page and it doesn't have the title you setup, then you've probably made a mistake in the index.php changes. You can use the included one for a quick test to isolate the problem.

Share this post


Link to post
Share on other sites

I have set up the default tags for my language and they properly appear on all the needed pages.

 

I have created some categories and products, and during creation I have set up all the needed tags.

 

On the page control, for product_info.php I have checked to include the Product and Category, but when a view a product only the default tags are displayed. Also the content language is wrong in the tags (meta http-equiv="Content-Language" content="en-us" >)

 

The product can be viewed at Product

 

What have I done wrong?

The default tags can only be displayed if you have the default checkbox option checked so it appears something is not correct with how the checkboxes are setup.

Share this post


Link to post
Share on other sites

The default tags can only be displayed if you have the default checkbox option checked so it appears something is not correct with how the checkboxes are setup.

 

I think that my problem is related with the fact that I am also using Seo Urls 5. After I have disable it is working. They don't work together?

Share this post


Link to post
Share on other sites

If the title and tags are present in admin and not in the shop, then there is something wrong on the shop site, or the settings. If you view source for the home page and it doesn't have the title you setup, then you've probably made a mistake in the index.php changes. You can use the included one for a quick test to isolate the problem.

when I view source it has my title and keywords. I uploaded included index file, but still the same

Google lists

store_name 9 Jun 2010 ... Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account? Welcome to My Wine and Beer. ...

source lists

<title>My Beer and Wine - Default title</title>

<meta name="Description" content="Homebrew supply shop, Beer making, Wine making - Default description" >

<meta name="Keywords" content="Beer,Wine,Coopers,align top,src images transparent png,width 1,height 16,border 0,alt , Default Keywords" >

thanks for your speedy reply and all the work that you put into this contribution

Share this post


Link to post
Share on other sites

I think that my problem is related with the fact that I am also using Seo Urls 5. After I have disable it is working. They don't work together?

They will work together but you have to apply a fix, or maybe it's a setting, in that contribution. It is mentioned in this thread, I think, or maybe in the SEO 5 docs.

Share this post


Link to post
Share on other sites

when I view source it has my title and keywords. I uploaded included index file, but still the same

Google lists

store_name 9 Jun 2010 ... Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account? Welcome to My Wine and Beer. ...

source lists

<title>My Beer and Wine - Default title</title>

<meta name="Description" content="Homebrew supply shop, Beer making, Wine making - Default description" >

<meta name="Keywords" content="Beer,Wine,Coopers,align top,src images transparent png,width 1,height 16,border 0,alt , Default Keywords" >

thanks for your speedy reply and all the work that you put into this contribution

The search engines only update their listings after they have looked at the pages so it could be that google just hasn't checked your site since the change. Plus, having the title and description is only a suggestion to them as to what to use. If they don't think it matches the page, they will create their own from text on the page. So be sure the text on the page contains that, or similar, information.

Share this post


Link to post
Share on other sites

Hi Jack could you help to decide this question I could not find answer

I would like category description works with fckeditor like product description

I have changed 2 strings but that looks like is not solution nothing work att all

 

case 'new_category':

 

 

$category_htc_description_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_textarea_field('categories_htc_description[' . $languages[$i]['id'] . ']', 'hard', 30, 5, '');

 

to

 

$category_htc_description_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_fckeditor('categories_htc_description[' . $languages[$i]['id'] . ']','600','300',(isset($categories_htc_description[$languages[$i]['id']]) ? stripslashes($categories_htc_description[$languages[$i]['id']]) : tep_get_category_htc_description($category_id, $languages[$i]['id'])));

 

 

and

 

case 'edit_category':

 

$category_htc_description_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_textarea_field('categories_htc_description[' . $languages[$i]['id'] . ']', 'hard', 30, 5, tep_get_category_htc_description($cInfo->categories_id, $languages[$i]['id']));

 

 

to

 

case 'new_category':

$category_htc_description_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_fckeditor('categories_htc_description[' . $languages[$i]['id'] . ']','600','300',(isset($categories_htc_description[$languages[$i]['id']]) ? stripslashes($categories_htc_description[$languages[$i]['id']]) : tep_get_category_htc_description($cInfo->categories_id, $languages

 

 

 

thanks

 

Hi Alex - did u ever find/get a solution to this?

Chris

:)

Share this post


Link to post
Share on other sites

Hi all!

I installed the lastest version today v3.2.3 on a "cleanish" 2.2RC2 I had some contributions installed previously

- SEO URL:s

- All products SEO

- Google XML SEO

 

The contribution seems to be working perfectly for all my english pages. However, it's not working for danish language (which is default) In all pages i get the "replace me" title when danish is used but if i select english, it works great.

I tried changing the meta tags for index.php (both using defaults and specific) but nothing works. When i clik "view result", it always shows me the "replace me" text as result for danish tags. I i click "view result" on the english tags, it shows the correct text

 

danish.jpg

 

Languagde code for danish is 4, english = 7 and seems consisten in all tables

 

I would appreciate any feedback.. Thanks

/Aarto

Share this post


Link to post
Share on other sites

Hi guys,

 

I am not the best with FTP etc so bear with me.

 

I tried to install the Header Tags SEO

 

I uploaded the headertags_seo_install file to the same directory as index.php

 

I then entered the path for this in the address bar and got this:

 

Fatal error: Call to a member function add_current_page() on a non-object in /home/admtools/public_html/includes/application_top.php on line 320

 

Even after removing the headertags file, I still get this message when trying to access me site homepage.

 

Your help is appreciated.

 

Thanks in advance

Share this post


Link to post
Share on other sites

Hi all!

I installed the lastest version today v3.2.3 on a "cleanish" 2.2RC2 I had some contributions installed previously

- SEO URL:s

- All products SEO

- Google XML SEO

 

The contribution seems to be working perfectly for all my english pages. However, it's not working for danish language (which is default) In all pages i get the "replace me" title when danish is used but if i select english, it works great. /Aarto

Try running the test routine and, if there are language errors, use the buttons that are shown.

Share this post


Link to post
Share on other sites

I tried to install the Header Tags SEO

 

I uploaded the headertags_seo_install file to the same directory as index.php

 

I then entered the path for this in the address bar and got this:

 

Fatal error: Call to a member function add_current_page() on a non-object in /home/admtools/public_html/includes/application_top.php on line 320

 

Even after removing the headertags file, I still get this message when trying to access me site homepage.

You didn't complete the installation since adding that function is part of it.

Share this post


Link to post
Share on other sites

I'm trying to purchase the installation with http://www.oscommerce-solution.com but i cannot find Singapore in the list of countries under billing address.

This isn't something that is allowed on the forums. I've PM'ed you.

Share this post


Link to post
Share on other sites

Try running the test routine and, if there are language errors, use the buttons that are shown.

 

Hi all! I got it working after i dropped the header_tags tables and re-installed them.. All is fine :-) GREAT Contribution. thanks

/Aarto

Share this post


Link to post
Share on other sites

Hi Jack,

 

I upgraded last weekend to "Header Tags SEO V 3.2.3" (hopefully) and if I start the test - no errors show up.

 

What I noticed is that the Product Keyword Tag entires are exactly the same as the Article Name.

I was assuming that all used keywords retrieved from whatever are to be separated by commas?

 

I did several trials but could not get the Product Keywords separated by commas.

 

The Product Description Tags do get retrieved from the article description correctly.

 

I also noticed that I'm getting the following error message

 

 

Fatal error: Maximum execution time of 30 seconds exceeded in /www/htdocs/w007db37/n2h_shop/catalog/admin/includes/functions/header_tags.php on line 498

 

 

when selecting Description Override=YES and Keywords Override=YES and PRODUCTS='Fill all tags'

 

Could that be due to the big amount of Products I have (about 2.500)? Can the timeout somehow be extended?

 

Any idea what I am doing wrong or what could be wrong? Any hint would be appreciated highly.

 

 

Best regards

 

Dieter/Germany

Share this post


Link to post
Share on other sites

What I noticed is that the Product Keyword Tag entires are exactly the same as the Article Name.

I was assuming that all used keywords retrieved from whatever are to be separated by commas?

 

I did several trials but could not get the Product Keywords separated by commas.

 

The Product Description Tags do get retrieved from the article description correctly.

 

I also noticed that I'm getting the following error message

 

when selecting Description Override=YES and Keywords Override=YES and PRODUCTS='Fill all tags'

 

Could that be due to the big amount of Products I have (about 2.500)? Can the timeout somehow be extended?

 

Any idea what I am doing wrong or what could be wrong? Any hint would be appreciated highly.

Header Tags doesn't have an article page. Are you referring to the Article Manager contribution?

 

You have to add commas for any keywords you enter. Header Tags will add commas between groups of them.

 

Yes, you are getting the timeout due to the number of products and the limits of your server. You can ask your host to increase your limit but it is unlikely they will do so.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×