Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Tags SEO


Jack_mcs

Recommended Posts

I have Automatically Add New Pages ON and I also have the header tags code in thehead section of the file - I have even compared that file with other working file just to make sure it is correct. The page will not show up in Page Control even when I click add missing pages. Can I add it manually or is there any trouble shooting method to find why it will not show up?

Absinthe Original Liquor Store

Link to comment
Share on other sites

Be sure the includes/header_tags.php file is writeable. For most servers, that means that the permissions on that file are the same as those on the images directory. That file should have an entry for the file(s) that are found with the head code in them. Also check the admin/includes/headertags_seo_excludes.txt file to be sure the files were not added to it by mistake.

 

You can also try running the test routine to see if it shows any problems.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 5 weeks later...

I am upgrading my store from OSC 2.2 RC2a to OSC 2.3.4 Official. (I was trying to upgrade to 2.3.4BS but because of certain code problems in a contribution, I decided to digress back to 2.3.4 official).

 

I have installed SPPC and the separate pricing feature works, the store runs stable.

 

When I installed HTSEO 3.3.3 a problem began where my left and right columns on the store side are moved to the bottom of page when I select a category or manufacturer.

 

I noticed this happened right after making the first 7 file changes in Catalog. I used the actual contribution files for copying the modifications into my files rather than the written instructions.

 

Using a compare software I made all the contribution modifications and then I rechecked all the files modified to see if I made any mistakes - I could not find any.

 

While trying to troubleshoot this problem I substituted the HTSEO index.php contribution file (cancelling out SPPC), low and behold - it works; the right and left columns on the store side stay where they are supposed to.

 

It appears it is the blending of these 2 major contributions that somehow are causing a conflict on the store side.

 

The store is using the Sunny template which is like the stock Redmond template.

 

I am not a coder, just a cut and paster and I need help. Can someone please help me?

 

Alan

PS A third major contribution to be installed is iOSC Mobile.

Production:
osCommerce V. 2.3.4BS
VPS Box

Link to comment
Share on other sites

@@spiritalan That sort of problem is due to extra or missing div's or tr's/td's. My guess is that it is in the includes/modules/product_listing.php file because both addons change it. In the code for that module in some shops, there is a closing </td> that needs to be removed. If you missed that, it would cause it. You also have to be sure to change the HTS code in the file to use the [$x] where appropriate. If it is not that file, it is one of the others that makes such a change. If it happens only when index.php is loaded and not product_info.php then it is index.php or the listing file. But if it happens on both, then its probably the template_top file.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I've got an old 2.2 Oscommerce shop which we're rebuilding using 2.3.4 bootstrap version.

 

In the old shop we've got header_tags.php,v 1.6 installed. Which is the best version of Header Tags to install in the new shop. And what is the best procedure to try and keep all the already entered details intact?

Link to comment
Share on other sites

@@hardy24 I don't know what version that might be since the version numbers in the files never meant anything with regard to the addon. The best approach is to do a new install in the new shop and then copy the contents of the header_tags tables, categories, manufacturers and products from the old shop. But this depends on how you care converting your database and whether that is already done. You could get the database copied first and then run the database update file. But that file will only work correctly if you have Header Tags SEO  version 3.3 installed. If you do, and if it is fully installed, then you can see the version number in Page Control.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack,

 

I have already moved over the contents of the database and run the database update file for oscommerce. I doubt the version installed on the old shop is version 3.3, it's most likely older than that.

 

Thanks.

Link to comment
Share on other sites

In that case the update file wouldn't have caught all of the missing things. In the update files in the addon package, there are individual MySQL commands that will allow you fix those, if needed. So if a failure occurs due to some missing database field, search for that field in the update docs to find the command to fix it.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

It isn't something that needs to be fixed. Each method has advantages and each will work. If you are using a 2.3 shop with the database tables option in Tools, you can convert the table there if you want.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@@Jack_mcs

 

Hello!

 

I would lik to add shema.org markup to logo, but cant figure out how to do that.

here are osc logo.php

<div id="storeLogo" class="col-sm-<?php echo $content_width; ?>">
    <?php /*** Begin Header Tags SEO ***/ ?>
     <div><div id="storeLogo">
      <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>';
      if (HEADER_TAGS_DISPLAY_PAGE_TOP_TITLE == 'true') { ?>
          <div style="position:absolute; top:0; left:40%; color:#777; font-size:10px;text-align:center"><?php echo $header_tags_array['title']; ?></div>
      <?php } ?>
     </div>
    <?php /*** End Header Tags SEO ***/ ?>
    
</div>
 
and here example:
<div itemscope itemtype="http://schema.org/Attorney">
<a itemprop="url" href="http://www.example.com/"title="Acme Patent
Lawyers, Chicago">
<img itemprop="logo" src="http://www.example.com/acme-patent-
lawyers.gif" alt="Acme LLP Patent Lawyers, Chicago, IL" /></a>
</div>
 
I think, code would be:
 
<div itemscope itemtype="http://schema.org/Attorney" id="storeLogo" class="col-sm-<?php echo $content_width; ?>">
    <?php /*** Begin Header Tags SEO ***/ ?>
     <div><div id="storeLogo">
      <?php echo '<a itemprop="url" href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>';
      if (HEADER_TAGS_DISPLAY_PAGE_TOP_TITLE == 'true') { ?>
          <div style="position:absolute; top:0; left:40%; color:#777; font-size:10px;text-align:center"><?php echo $header_tags_array['title']; ?></div>
      <?php } ?>
     </div>
    <?php /*** End Header Tags SEO ***/ ?>
    
</div>
 
But where I have to add itemprop="logo"?
Link to comment
Share on other sites

Try this:

<?php echo '<a itemprop="url" href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME), '','',' itemprop="logo" ') . '</a>';

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack,

 

I am using Header Tags SEO and having a problem where many of my listings in Google and Bing are showing the default site name after the category or products name.  Product - Default Site Name or Category - Default Site Name. This does not appear on the pages themselves when I check them in my browser, so I am a little bit confused why this is appearing in the search results. On one site it is not even showing the default site name, but instead the name of the first category, even though the products or categories it is being added to are not in that particular category.

 

Any ideas on what could be causing this?

 

Thanks in advance for any thoughts you have on what may be causing this.

Link to comment
Share on other sites

It's not clear to me what you mean by "default site name" since there is a default section in Page Control that you may be referring to. But in any case, this is probably caused by the check box settings in Page Control for the index and product_info page. There are images in the docs directory that may help to understand how to set those and there are instructions in the links at the top of Page Control, assuming you are using a recent version. But, in general, you want to make sure the root and default check boxes are not checked.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

i am trying to install HeaderTags_SEO_V_3.3.3_1 on BS Gold.

 

everything seemed to go fine in the install, 

 

 

admin/includes/database_tables.php

and includes/database_tables

 

have:

    /*** Begin Header Tags SEO ***/
  define('TABLE_HEADERTAGS', 'headertags');
  define('TABLE_HEADERTAGS_CACHE', 'headertags_cache');
  define('TABLE_HEADERTAGS_DEFAULT', 'headertags_default');
  define('TABLE_HEADERTAGS_KEYWORDS', 'headertags_keywords');
  define('TABLE_HEADERTAGS_SEARCH', 'headertags_search');
  define('TABLE_HEADERTAGS_SILO', 'headertags_silo');
  define('TABLE_HEADERTAGS_SOCIAL', 'headertags_social');
  /*** End Header Tags SEO ***/

i checked in the admin database tables, the table does exist and is converted to utf8_unicode_ci

 

permissions are set on header_tags.php at 755 

i ran the headertags_seo_update.php . i saw that this was recommended in another post.

 

 yet i am getting the error below on index.php

 

 

1146 - Table 'site.TABLE_HEADERTAGS_DEFAULT' doesn't exist

select * from TABLE_HEADERTAGS_DEFAULT where language_id = '1'

 

thanks.

Edited by zpupster
Link to comment
Share on other sites

@@zpupster The code isn't seeing the definition for some reason. Are you sure you uploaded the changed database_tables file to the server? If you did, in the admin/includes/application_top.php file, add this after the error_reporting line near the top

  ini_set('display_errors','1'); 

Then refresh the page and see if there are any fatal error messages. If that doesn't help, edit the admin's database_tables.php file and remove  the line for define('TABLE_CONFIGURATION in the admin. When you refresh the page, the error should change to indicate that table is at fault. If it doesn't, then there is something wrong in your setup.

 

By the way, in case you are not aware of it, you are installing an older version. I suggest installing the latest one since it has bug fixes in it.

Edited by Jack_mcs

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

By the way, in case you are not aware of it, you are installing an older version. I suggest installing the latest one since it has bug fixes in it.

HeaderTags_SEO_V_3.3.3_1 

 

this was the latest that i saw. that is what i used. from a 234 install the version checker said this was the latest.

 

do you have a link to another one??

Link to comment
Share on other sites

I believe I was told here that we did not need header tags for our search results pages. I am having those pages index in google like this:

 

 

1 - Store Title

www.xxxxxxx.com/advanced_search_result.php?..xxx%20xxx...
Items 1 - 24 of 53 - Product title....Product title

 

Is there any way to at least have the page show something like " Page 1 - Search Results - Store Title" ?

 

Also, is there a way to add the product number to the tags? I have pages with duplicate titles and need to add that product number so at least one thing in the tags is different. ( I know I shouldn't have duplicate titles, but that's just how it worked out)

Link to comment
Share on other sites

The search engines shouldn't have search result pages listed. The only way, normally, for those pages to display is if someone does a search, which the search engines can't do. Although I've seen sites deliberately link to search results, which they shouldn't do. Or maybe you are using the Google Sitemap addon and don't have the pages listed in the ignore option.

 

But in answer to your question, the search engines, especially google, will make up their own titles and descriptions if they don't find one they like on the page. You can use the default check boxes for that page and it may prevent that but the text you enter may not make sense to your customers unless it is very generic. But if it is too generic, the search engines may not use it. Better to just block them in the first place.

 

There is an option to include the product model number and another to add the cPath ID. Either of those may make it unique.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@ Search results appear in SE indexes when for eg, a user does a search and then links to the result page on a forum or social media site. They can be useful for SEO and drive traffic. The %20 appears in the url because of the spaces between search term keywords. You can try to do a string replace with + so that the URL becomes more readable. You can also try to get and echo the keyword parameter in the page Title.

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

I was wondering if someone can give me some info .. sorry if I missed it in this thread -  I was updating my header tags seo (V3.3.2) and I was in the Page Control section and going through checking the different tags such as -index.php / product_info.php etc.. all looked great including when I clicked the view results.

 

I then go back to my who's online feature and I notice that an ip (72-9-130-134) was mimicking what I was doing in my admin section of header tags - so I thought well that's odd as that is not my ip - so I blocked it.

 

In doing so I then went back into the header tags page control area - and clicked into index.php and so far so good - then when I clicked into the view results it now shows an 403 Forbidden in yellow and red for the rest - it does it for all of them now.

 

So I went and un-banned that ip - and now everything works.. is that suppose to occur as I never noticed that before.

Edited by Lexi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...