Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

The < and $text viewing in the boxes are coding mistakes. You need to check the changes you made on that page. I don't see anything regarding a What's New statement but that isn't something the contribution adds.

 

 

< is my mistake also the whats new thing, ive fixed both...

 

However...

 

 

 

 

 

 

=============================================

FIND (around line 240)

 

</table></form></td>

<!-- body_text_eof //-->

 

 

ADD ABOVE it:

 

<?php /*** Begin Header Tags SEO ***/ ?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="smallText" align="center"><?php echo TEXT_VIEWING; ?> 

<?php echo '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '"/# ' . $header_tags_array['title'] . '">' . $header_tags_array['title']; ?></a></td>

</tr>

<?php /*** End Header Tags SEO ***/ ?>

 

NOTE 1: The placement of this is not critical. Anywhere neat the bottom of the

page is fine. You can also change or remove the TEXT_VIEWING text to

fit your site.

 

NOTE 2: If you are using STS and a product_info template, use this code instead:

 

<table width="794" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="smallText" align="center">$text_viewing  $text_viewing_title</td>

</tr>

<!--- BEGIN Header Tags SEO Social Bookmarks -->

</table>

 

 

 

 

 

 

 

 

 

My product_info.php

 

How is this wrong?

 

using rc2 sts

 

 

 

<?php
/*
 $Id: product_info.php 1739 2007-12-20 00:52:16Z hpdl $

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

 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; ?>">
<title><?php echo TITLE; ?></title>
<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"> 
<?php /*** Begin Header Tags SEO ***/ ?>
<a name="<?php echo $header_tags_array['title']; ?>"></a>
<?php /*** End Header Tags SEO ***/ ?>

<!-- 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) {
?>
     <tr>
       <td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
<?php
 } else {
   $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id 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);

   tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

   if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
     $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
   } else {
     $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
   }

   if (tep_not_null($product_info['products_model'])) {
     $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';
   } else {
     $products_name = $product_info['products_name'];
   }
?>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <?php /*** Begin Header Tags SEO ***/ ?>
           <td valign="top"><h1><?php echo $products_name; ?></h1></td>
           <td align="right" valign="top"><h1><?php echo $products_price; ?></h1></td>
           <?php /*** End Header Tags SEO ***/ ?>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td class="main">
<?php
   if (tep_not_null($product_info['products_image'])) {
?>
         <table border="0" cellspacing="0" cellpadding="2" align="right">
           <tr>
             <td align="center" class="smallText">
<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
             </td>
           </tr>
         </table>
<?php
   }
?>
         <p><?php echo stripslashes($product_info['products_description']); ?></p>
<?php
   $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
   $products_attributes = tep_db_fetch_array($products_attributes_query);
   if ($products_attributes['total'] > 0) {
?>
         <table border="0" cellspacing="0" cellpadding="2">
           <tr>
             <td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td>
           </tr>
<?php
     $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name");
     while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {
       $products_options_array = array();
       $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'");
       while ($products_options = tep_db_fetch_array($products_options_query)) {
         $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);
         if ($products_options['options_values_price'] != '0') {
           $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
         }
       }

       if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {
         $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];
       } else {
         $selected_attribute = false;
       }
?>
           <tr>
             <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
             <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td>
           </tr>
<?php
     }
?>
         </table>
<?php
   }
?>
       </td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
   $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
   $reviews = tep_db_fetch_array($reviews_query);
   if ($reviews['count'] > 0) {
?>
     <tr>
       <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
   }

   if (tep_not_null($product_info['products_url'])) {
?>
     <tr>
       <td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
   }

   if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
?>
     <tr>
       <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>
     </tr>
<?php
   } else {
?>
     <tr>
       <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
     </tr>
<?php
   }
?>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>
               <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr> 
   <!--- BEGIN Header Tags SEO Social Bookmarks -->
     <?php if (HEADER_TAGS_DISPLAY_SOCIAL_BOOKMARKS == 'true')
      include(DIR_WS_MODULES . 'header_tags_social_bookmarks.php');
     ?>
     <!--- END Header Tags SEO Social Bookmarks -->
     <tr>
       <td>
<?php
   if ((USE_CACHE == 'true') && empty($SID)) {
     echo tep_cache_also_purchased(3600);
   } else {
     include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
   }
 }
?>
       </td>
     </tr> 
  <table width="794" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr>
      <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
      <td class="smallText" align="center">$text_viewing  $text_viewing_title</td>
     </tr>
     <!--- BEGIN Header Tags SEO Social Bookmarks -->
    </table>
   </table></form></td>
<!-- body_text_eof //-->
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

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

Share this post


Link to post
Share on other sites

My product_info.php

 

How is this wrong?

 

using rc2 sts

Please don't post such a large amount of code unless asked. It won't be looked at, at least by me. There is a fix for the STS problem, posted recently, or it is in the latest version.

Share this post


Link to post
Share on other sites

Hello Jack,

 

Loaded up this contribution and am having an install problem. Been through the instructions twice each day over the last 3 days and can't figure it out.

 

My problem is with the admin/catalog catagores/products. The center section is out of alignment underneath the left column and when I select edit in a category all I have is text for title, description, keywords, etc. where the boxes should be.

 

Can you point me to an area that would cause these so I can try and figure this out?

 

Thanks in advance.

 

Steve

Share this post


Link to post
Share on other sites

My problem is with the admin/catalog catagores/products. The center section is out of alignment underneath the left column and when I select edit in a category all I have is text for title, description, keywords, etc. where the boxes should be.

 

Can you point me to an area that would cause these so I can try and figure this out?

There are too many possible mistakes to try to answer that. But there are completed files in the package. Any problem with the admin->Catalog section will be due to the admin/categories.php file so you need to compare yours to the included one with a compare program to find the problem.

Share this post


Link to post
Share on other sites

I have installed header tags seo from this http://addons.oscommerce.com/info/5851

 

When I go to admin panel configuration-> header tags seo

I get warning message

 

Warning: call_user_func(header_tags_reset_cache) [function.call-user-func]: First argument is expected to be a valid callback in /home/rangus/public_html/ethereallight.co.uk/admin/includes/functions/general.php on line 1220

 

Jack you have replied in one of the threads as

 

You have to install the new code from the contribution. Please see the update instructions before posting.

 

but I have only installed full package codes from this link

http://addons.oscommerce.com/info/5851

 

what shoudl i do to solve the issue please help.Thanks in advance

Share this post


Link to post
Share on other sites

I have installed header tags seo from this http://addons.oscommerce.com/info/5851

 

When I go to admin panel configuration-> header tags seo

Warning: call_user_func(header_tags_reset_cache) [function.call-user-func]: First argument is expected to be a valid callback in /home/rangus/public_html/ethereallight.co.uk/admin/includes/functions/general.php on line 1220

What is at line 1220 in admin/includes/functions/general.php? Did you upload all of the Header Tags files? To the correct location?

Share this post


Link to post
Share on other sites

There are too many possible mistakes to try to answer that. But there are completed files in the package. Any problem with the admin->Catalog section will be due to the admin/categories.php file so you need to compare yours to the included one with a compare program to find the problem.

 

Thanks for the help Jack. Went through this file line by line with the install and the finished files in the package. I fixed the box issue but I still have the center below the left column. Not the best but I really just need the text on the category page. Is it a major issue if the admin is out of alignment or is it just cosmetic?

Share this post


Link to post
Share on other sites

Thanks for the help Jack. Went through this file line by line with the install and the finished files in the package. I fixed the box issue but I still have the center below the left column. Not the best but I really just need the text on the category page. Is it a major issue if the admin is out of alignment or is it just cosmetic?

As long as it doesn't cause any missing parts it is just cosmetic.

Share this post


Link to post
Share on other sites

Jack, I have fckEditor installed and enabled in HT SEO. After I update the Header Tags Categories Description in the edit mode, I get this right above the fckEditor window:

 

" style="display:none" />

 

That only occurs in the edit window/mode and only if I actually edit a HT category description.

 

I am guessing it's a coding error somewhere; I've looked through my admin/categories.php file and can't seem to find the cause.

 

Can you assist? Thanks


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

Jack, I have fckEditor installed and enabled in HT SEO. After I update the Header Tags Categories Description in the edit mode, I get this right above the fckEditor window:

 

" style="display:none" />

 

That only occurs in the edit window/mode and only if I actually edit a HT category description.

 

I am guessing it's a coding error somewhere; I've looked through my admin/categories.php file and can't seem to find the cause.

 

Can you assist? Thanks

 

Jack, I applied this code modification by Goring_Gap and it seems to have taken care of the issue.


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

Jack, I applied this code modification by Goring_Gap and it seems to have taken care of the issue.

Thanks for confirming it works. And thanks to Goring_Gap for posting the fix. It has been added to the next version.

Edited by Jack_mcs

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for this great contribution!..

Had some errors but managed to fix all of them with winmerge :)..

Install is pretty dificult though because you can make quite a few mistakes :) :)

 

hope my shop gets a better index on google..

1000 times thanks

Edited by Tychokaspers

Share this post


Link to post
Share on other sites

Hi Jack, i had some free time to check upon my installation and i have some issues and questions:

 

1. If i enable Display Column Box then the infobox is showing up correctly, but the price of the product on the product's page is shown up as 0€ (on product's listing the price is shown up correctly)

2. Altough the keyword's separator is set to "," on Product Keywords Tag of all products there is no comma, it shows up as one sentence with no comma separation

3. By default the Keyword Density Range is set up to 0.02,0.06. What do these 2 numbers mean and in which way i can modify them in favor of better show up my products on search engines?

4. On the Fill Tags section i had chosen "No" to both Description Override and Keywords Override, so all tags were filled up with the product's title. The problem is that when i choose "Yes" to any of the above, i get an HTTP500 error. I have 500 products on my osc 2.2 MS2 shop (standard, no templates, no STS)

 

Merry Christmas!

Edited by Vassilis

Share this post


Link to post
Share on other sites

1. If i enable Display Column Box then the infobox is showing up correctly, but the price of the product on the product's page is shown up as 0€ (on product's listing the price is shown up correctly)

2. Altough the keyword's separator is set to "," on Product Keywords Tag of all products there is no comma, it shows up as one sentence with no comma separation

3. By default the Keyword Density Range is set up to 0.02,0.06. What do these 2 numbers mean and in which way i can modify them in favor of better show up my products on search engines?

4. On the Fill Tags section i had chosen "No" to both Description Override and Keywords Override, so all tags were filled up with the product's title. The problem is that when i choose "Yes" to any of the above, i get an HTTP500 error. I have 500 products on my osc 2.2 MS2 shop (standard, no templates, no STS)

1 - The only thing Header Tags does with the price is change the class to h1 but that wouldn't affect the currency so I've no suggestions on this one.

 

2 - That seting is only used when joining keywords, not for ones you entered. For example, let's say you have a product that you want to use the keywords of one, two and three. If you enter them as one, two, three and you have the keywords for the product_info page set to four, five, then the final keywords string would one, two, three, four, five. But if you entered them in the products edit page as one two three, then the final string would be one two three, four, five.

 

3 - Those numbers are percentages. The recommended range for keyword density is somewhere between 2% and 6%. Most agree that 4-5 % is ideal though there is no solid evidence on that that I've seen. But going above 6% is considered spamming and below 2% is considered to not have the page optimized preperly. But, again, the rule on that is not hard and fast. I worked on one site that ranked number one for the main keyword and the KD was close to 10% for that keyword. But that site does have a lot of text on the page so that will make a differene. If your page has a lot of text that the search engines can use, then a higher KD is more acceptable. But if the total number of words on the page are coming from the columns and footer (usually non-keyword related text) and the main body has the keyword mentioned over and over, then that will hurt.

 

4 - Yes, this is a known problem. I plan on doing something about it in the next version but don't have a date on that. You can try just filling for the products (no categories or manufacturers) though I doubt that will help since the majority of the work is due to the products. One quick fix that may get it to work is the following. Around line 257, find

           while ($products_tags = tep_db_fetch_array($products_tags_query))
          {

and change it to

           $delayCtr = 0;
          while ($products_tags = tep_db_fetch_array($products_tags_query))
          {
            $delayCtr++;

and around line 348 in admin/header_tags_fill_tags.php, find

               else
                $fillTagsErrors['products'][] = '<a class="htc_Link" href="' . tep_href_link(FILENAME_CATEGORIES, 'pID=' . $products_tags['products_id']) . '&action=new_product">' . sprintf(ERROR_FILL_TAGS_PRODUCTS, $products_tags['products_id'],$languages[$i]['id']) . '</a>';
            }

and change it to

               else
                $fillTagsErrors['products'][] = '<a class="htc_Link" href="' . tep_href_link(FILENAME_CATEGORIES, 'pID=' . $products_tags['products_id']) . '&action=new_product">' . sprintf(ERROR_FILL_TAGS_PRODUCTS, $products_tags['products_id'],$languages[$i]['id']) . '</a>';
            }
if ($delayCtr % 100 == 0) sleep(100);

where the first 100 is the number of passes and the second is a delay in seconds, so every 100 products a delay of 100 seconds will occur. You can adjust either as needed. This change may allow the script to complete but it might take a very long time to do so. The correct way is to change how the database call is handled but that is more of a change than I can do right now. If this doesn't work, there's no other way around it at the moment.

Share this post


Link to post
Share on other sites

1. It didn't affect the currency, it affected the price and set it to zero

2 & 3. Thanx for the info, i got it

4. I lowered it down to 50, 30, 20, 10 & 5 passes, but i still get the HTTP500 error. If there is no fix about this issue for now, it means that i have to insert manualy the keywords on all products (i guess that having as keyword the title of the product is not effective)

Share this post


Link to post
Share on other sites

Hi, Upgraded again today was four versions behind.

 

Touch wood everything went well, updated in a matter of minutes, even with me taking out duplicated database entries for the configuration.

 

Fantastic module.

 

Hope everyone had a great Christmas, and will have a fantastic New Year


Getting better with mods but no programmer am I.

Share this post


Link to post
Share on other sites

I had this exact, same problem. Substituting the New Shop code as recommended by Vassilis below has solved the problem on my product pages.

 

But it still happens on the catagories page.

 

I have no templates installed and have not modified the appearance of the shop.

 

Any ideas?

 

 

 

 

I corrected the above right column problem concerning product_info.php by using the code from the 'new shop' file which is slightly different than the code in the instructions:

 

New Shop code (ms2, less than 2.3):

<?php /*** Begin Header Tags SEO ***/ ?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="smallText" align="center"><?php echo TEXT_VIEWING; ?> 

<?php if (! tep_not_null($header_tags_array['title'])) $header_tags_array['title'] = $product_info['products_name'];

echo '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '"/# ' . $header_tags_array['title'] . '">' . $header_tags_array['title'] . '</a>';

?>

</td>

</tr>

<?php /*** End Header Tags SEO ***/ ?>

 

Instructions code (ms2, less than 2.3):

<?php /*** Begin Header Tags SEO ***/ ?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="smallText" align="center"><?php echo TEXT_VIEWING; ?> 

<?php echo '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '"/# ' . $header_tags_array['title'] . '">' . $header_tags_array['title']; ?></a></td>

</tr>

<?php /*** End Header Tags SEO ***/ ?>

 

:-)

Edited by peterguk

Share this post


Link to post
Share on other sites

I had this exact, same problem. Substituting the New Shop code as recommended by Vassilis below has solved the problem on my product pages.

 

But it still happens on the catagories page.

 

I have no templates installed and have not modified the appearance of the shop.

Then you should be able to use the included index.php file.

Share this post


Link to post
Share on other sites

Have not down loaded contribution as of yet, but been looking through it. Because I am using osc ver 2.3.1. I n looking at folder "Use for ver greater than 2.3" -> catalog -> includes , there is a folder called boxes. But in ver 2.3.1 boxes folder is located in the module dir. So how will this affect, because of not the same file structure as 2.3.1?

 

Thank you.

 

Bennett

Share this post


Link to post
Share on other sites

Have not down loaded contribution as of yet, but been looking through it. Because I am using osc ver 2.3.1. I n looking at folder "Use for ver greater than 2.3" -> catalog -> includes , there is a folder called boxes. But in ver 2.3.1 boxes folder is located in the module dir. So how will this affect, because of not the same file structure as 2.3.1?

That is not used. It is just an oversight in the update process. The actual box files are in the modules directory.

Share this post


Link to post
Share on other sites

That is not used. It is just an oversight in the update process. The actual box files are in the modules directory.

 

 

So I take take that if I download this and since my store has been modified some, all I need to do is go to folder Use for ver greater than 2.3]/b] and then go the Catalog folder and follow the instructions. Is this right?

 

Thanks in advance.

Share this post


Link to post
Share on other sites

So I take take that if I download this and since my store has been modified some, all I need to do is go to folder Use for ver greater than 2.3]/b] and then go the Catalog folder and follow the instructions. Is this right?

 

Thanks in advance.

No, you should follow the instructions in the readme in the 2.3 directory.

Share this post


Link to post
Share on other sites

Hi Jack,

 

I have installed Header Tag SEO V 3.1.8, I added category description in my categories and that works perfectly. But when I add sub-categories, the category description disappear, there's only sub-category pictures. How to keep the category description? Can you help on this?

 

Thanks very much

Share this post


Link to post
Share on other sites

I have installed Header Tag SEO V 3.1.8, I added category description in my categories and that works perfectly. But when I add sub-categories, the category description disappear, there's only sub-category pictures. How to keep the category description? Can you help on this?

I don't keep working shops wih old versions installed so I can't say if the problem you are having is in the contribution or not. The problem will most likely be in the index.php file though so you should look there. There is a completed file in the contribution. Although, I suggest you upgrade since that is seven versions ago and many fixes were made since then.

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

×