Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

I think that I'll take the risk and wait...  :thumbsup:

 

Why is it not possible send a reply here using Firefox browser now...? Works fine in Chrome.  o:)


Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

Hi Jack.

 

Since I had updated the last versions I have a problem with the tax info. I tried to fix it without success.

 

Please take for example a look at:

http://www.unitraders.de/bwt-anschlussmodul-34-ohne-druckminderer-p-638.html

 

Every product shows now a duplicate from the tax info "[inkl. 19% MwSt zzgl. Versandkosten]" />" in the top left which normally stands under the price.

 

Thanks.

 

Br

 

Thomas

Share this post


Link to post
Share on other sites

This addon doesn't have anything at all to do with taxes. It does change the code that display the price for some shops so perhaps that is what you are seeing. I suggest replacing the product_info.php file with your original, make sure that it is working as it was, then apply the changes for this addon one at a time, being sure to check the result at each change to find the problem.

Share this post


Link to post
Share on other sites

Thanks for the quick answer.

I already replaced the product_info, index .....and also several files with older ones before I now was written in the forum. I know that your time is limited... ;-) but nothing helps.

The tax_info comes from the info beneath the prices for each product. It's required in our laws.

I just replaced the product_info with a still older one..no sucess.

 

Do you have any idea?

Share this post


Link to post
Share on other sites

It looks like it is a pre-2.3 shop so, if that is the case, the only thing affecting the product page is in the product_info.php file. Since you've replaced that, from the point-of-view of the product page, Header Tags SEO doesn't exist. So the problem has to be related to something else, though I don't know what that might be. I would have to see the code to determine the problem. All I can suggest is that you replace all of the files you changed in the shop side and see if that fixes it. Maybe you changed one, or uploaded one, that shouldn't have been changed?

Share this post


Link to post
Share on other sites

Yes, it is a pre-2.3 shop. I think there was a little mistake in understanding. If I take the original file (from back then 2006) then the tax disapear in the left corner. Only with the files of the Header Tags it is shown but I'm pretty sure that this happend by the last two updates. I made for any months the update till 3.2.6 and it worked but now in the last days I updated till 3.3.2.1 and now I have the problem.

Another problem is in the admin section that the Fill Tags don't work but this I will check more in the next days.

Share this post


Link to post
Share on other sites

When I take out following from the product_info:

 

<?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 - oscommerce-solution.com ***/
?>

 

 

and:

 

pd.products_head_sub_text from the $product_info_query

 

and:

 

replace this: <p><?php echo HTS_Highlight(stripslashes($product_info['products_description']), $header_tags_array['keywords']); ?></p>

with the old one: <p><?php echo stripslashes($product_info['products_description']); ?></p>

 

then the tax in the left corner disappear..

 

Can you make sense of something??

Share this post


Link to post
Share on other sites

Oh, I see. Yes, I misunderstood the problem. The reason that text is displaying like that is because you've overwritten or added a php delimiter ( <?php or ?> ). Both of the code sections you show look correct. The problem may be in the includes/header_tags.php file. If you haven't tried using the one included in the package, then I suggest doing that first. Otherwise, it is something in that file and you will have to trace down the problem. Did you try using the product_info.php file from the package to see if the problem goes away? You can upload it as a different name, like product_info_hts.php, but you will also need to turn off the url rewriter so you can access it. That should help you determine which file is at fault.

Share this post


Link to post
Share on other sites

Take a look also in includes/footer.php and includes/template_bottom.php (if you have )

 

I made a mistake once when installing and the includes/footer.php mistake appeared in the header


To improve is to change; to be perfect is to change often.

 

Share this post


Link to post
Share on other sites

Thanks a lot both.

Now I'm sure that the header_tags file was the guilty one.

Version <=3.3.0 works for me

Version > 3.3.1 doesn't works.

 

I'm will check this deeper but on the other hand if you have the "quicker" solution means you know in which line...you're welcome here... :thumbsup:

 

@@John

Yes, sometimes I still only wondering... :)

Share this post


Link to post
Share on other sites

Jack, if I do the following:

1/ complete Title Tag - URL on admin page and enter "Test Product Blue"

2/ have the latest Ultimate SEO URLs installed

3/ clear cache (both)

I should see the URL as follows: www.mystore.com/category-test-product-blue-p-59.html or not? Because I don't.


Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

Brilliant! I've missed that part of settings. :thumbsup:

 

Now, another small issue... All product TAGS (title, description, etc) work fine for default language (English) but they don't seem to work for any other language despite the fact that they're all set in admin. Category Title URL work fine for all languages but no products tags.

 

Also, Header Tags Category Title, Description, etc. doesn't seem to be displayed (works fine in English), it is empty, see this:

<html dir="LTR" lang="fr">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 <title></title>
 <meta name="Description" content="" >
 <meta name="Keywords" content="" >
 <meta http-equiv="Content-Language" content="fr" >
 <meta name="robots" content="noodp" >
 <meta name="slurp" content="noydir" >
Edited by mr_absinthe

Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

Please try running the test routine to see if there are errors for the languages.

Share this post


Link to post
Share on other sites

All seems to be fine now, not sure where the problem was - maybe me sitting in front of the computer for too long...


Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

The coding should be something like what is shown below:

<h1>Main Heading</h1>
<h2>Secondary Heading 1</h2>
<h3>Sub-section of the secondary heading 1</h3>
<h2>Secondary Heading 2</h2>
<h3>Sub-section of the secondary heading 2</h3>

Edited by jimmyforsyth

Share this post


Link to post
Share on other sites

Hi jack thanks for this great contrubition, but I dont think it works with 2.3.4, and also please look at the code from includes/template_top.php

 

If I use the file included in the complet package for a fresh install from "HeaderTags_SEO_V_3.3.2_1" I get errors, i am no expert but i think there is some extra code in this file

-----------------------------------------------------------------------------------------------------------

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?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 tep_output_string_protected($oscTemplate->getTitle()); ?></title>
<?php
}
/*** End Header Tags SEO by oscommerce-solution.com ***/
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />
<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.22.css" />
<script type="text/javascript" src="ext/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.22.min.js"></script>

<script type="text/javascript">
// fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484
if ( $.attrFn ) { $.attrFn.text = true; }
</script>

--------------------------------------------------------------------

 

I have solved this problem

 

My problem now is

------------------------------------------------------------------------------

 

1146 - Table 'lingerie_test2.TABLE_HEADERTAGS' doesn't exist

select page_name from TABLE_HEADERTAGS where page_name like 'index.php' and language_id = '1' LIMIT 1

[TEP STOP]

----------------------------------------------------------------

 

and  when i click on any links under 

Header Tags>>

  • Fill Tags
  • Keywords
  • Page Control
  • Silo Control
  • Social
  • Test

in the admin side i get error like below

 

www.mysite/catalog/admin/FILENAME_HEADER_TAGS_FILL_TAGS

 

Please any help will be appreciated

Edited by Spiceupyour

Share this post


Link to post
Share on other sites

The files in the package won't be compatible with all versions due to the many differences between the versions. If you perform the manual instructions or do a file compare, you should be able to figure it out.

 

The second problem is because you made a mistake in the installation.

Share this post


Link to post
Share on other sites

Thanks Jack, I re-installed a fresh copy and it works great, Thanks!!!

 

will do some more test, and let you know, Thanks again 

Edited by Spiceupyour

Share this post


Link to post
Share on other sites

Dear Jack need your help and advice once again,

 

On product info page I get a error on line 163

 

Fatal error: Call to undefined function hts_highlight() in

 

/home4/****/public_html/****/catalog/product_info.php on line 163

 

This is the original code

<?php echo stripslashes($product_info['products_description']); ?>

 

Replace with your code

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

<?php echo HTS_Highlight(stripslashes($product_info['products_description']), $header_tags_array['keywords']); ?>

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

Share this post


Link to post
Share on other sites

That error is saying the code can't find the hts_highlight function. That is located in the includes/header_tags.php file. So either you didn't upload it or there is something wrong with your changes.

Share this post


Link to post
Share on other sites
Hi Jack, finally got every thing working, just a little problem

 

When I replace "Replace me in Page Control" under page control with some new text, the new text is displayed on the index.php

also get 

 

Products New - Default title

Reviews - Default title

 

display on other pages, i think I have to remove a line of code from header.php but I am not good with code, just learning, please advice

 

Thanks

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

×