Jump to content
Sign in to follow this  
englishchrissy

Header Tag Controller 2.5.6

Recommended Posts

Hi, ive just installed HTC v2.5.6 and everything seems to be working. I'm trying to get the tags to work for individual products. For example, if I click on my category 'Radio Control Toys' I go to the Radio Control Toys page and as I expected the title says Radio Control Toys, the description and keywords say the correct description that I entered via admin/catalog/categories/products/radio control toys. So far so good. Now if I click on one of the products, say 'X-UFO' on the 'Radio Control Toys' page I go to products_info.php page for the product. Here the title is 'Product Info' which is what is set up in /catalog/includes/languages/english/header_tags.php. I want the title to say 'X-UFO' with the correct description and keywords. Ive looked at my database product_description table and products_head_title_tag, products_head_desc_tag and products_headkeywords_tag are set up with what I want to appear. Does anyone know how to do this. Maybe ive missed something or I'm just being a bit thick. Please can someone point me in the right direction.

 

Incidentally, if I go to admin and look at the product X-UFO via the edit option I can see a section for 'Meta Tag Information' with Products Page Title, Page Header Description and Product Keywords headings. I have entered some data in these but cant see where its being stored or even being used. Any ideas?

 

I think HTC is a great contribution. Good instructions. I managed to install it at the 1st attempt. Thanks guys.


Webmaster www.SexoticToys.co.uk

Share this post


Link to post
Share on other sites

First, you need to run admin->Header Tags->Fill Tags if you haven't. Then make sure that the product_ingo.php file has the code change for Header Tags as mentioned in the INstall_Catalog.txt file.

 

Jack

Share this post


Link to post
Share on other sites
First, you need to run admin->Header Tags->Fill Tags if you haven't. Then make sure that the product_ingo.php file has the code change for Header Tags as mentioned in the INstall_Catalog.txt file.

 

Jack

 

Hi Jack, all the data for the tags is in the product_description table. Initially Ive set it up as the same as product_name. ive added the following code in product_info.php to replace the original title tag as per install file:-

 

<?php

// BOF: WebMakers.com Changed: Header Tag Controller v2.5.6

// Replaced by header_tags.php

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

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

<?php

}

// EOF: WebMakers.com Changed: Header Tag Controller v2.5.6

?>

 

When i go to the product_info.php page the title is 'Product Info' which is what is set up in /catalog/includes/languages/english/header_tags.php. What I want to see as the title is what is in the products_head_title_tag column on the product_description table. Can HTC do this?


Webmaster www.SexoticToys.co.uk

Share this post


Link to post
Share on other sites

Hi

 

I have installed Header Tags and it works when I use the Fill Tags command. However, when I go to a specific product and amend the tag, hit confirm, it loses what I entered. If I then use the Fill Tags command I can get something back (not what I wrote but the default).

 

Any thoughts on why it does not let me save what I write?

 

Thanks

 

W

Share this post


Link to post
Share on other sites

Bit of extra info, I am using Master Products too.

 

W

 

Hi

 

I have installed Header Tags and it works when I use the Fill Tags command. However, when I go to a specific product and amend the tag, hit confirm, it loses what I entered. If I then use the Fill Tags command I can get something back (not what I wrote but the default).

 

Any thoughts on why it does not let me save what I write?

 

Thanks

 

W

Share this post


Link to post
Share on other sites
Hi Jack, all the data for the tags is in the product_description table. Initially Ive set it up as the same as product_name. ive added the following code in product_info.php to replace the original title tag as per install file:-

 

<?php

// BOF: WebMakers.com Changed: Header Tag Controller v2.5.6

// Replaced by header_tags.php

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

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

<?php

}

// EOF: WebMakers.com Changed: Header Tag Controller v2.5.6

?>

 

When i go to the product_info.php page the title is 'Product Info' which is what is set up in /catalog/includes/languages/english/header_tags.php. What I want to see as the title is what is in the products_head_title_tag column on the product_description table. Can HTC do this?

Yes, that is how it should work. If you go to admin->catalog and edit a product, you should see a section named Product Title Tag:, not Products Description. That is where the title for the page is entered.

 

Jack

Share this post


Link to post
Share on other sites
Bit of extra info, I am using Master Products too.

 

W

It probably has to do with the edits in the admin/categories.php file. You can try using the one from the contribution as a test. If Header Tags works properly, then the problem is in the installation and you will need to compare the files to find the problem.

 

Jack

Share this post


Link to post
Share on other sites

Hi Jack

 

Probably not a bad idea.

 

I asked a similar question on the Master Products page (bit of a cross post I know).

 

Could it have any thing to do with this line in admin/categories

 

(1st line from Header Tags, 2nd line from Master Products)

 

$form_action = (isset($HTTP_GET_VARS['pID'])) ? 'update_product' : 'insert_product';

 

$form_action = (isset($HTTP_GET_VARS['pID'])) ? 'update_master' : 'insert_master';

 

W

 

It probably has to do with the edits in the admin/categories.php file. You can try using the one from the contribution as a test. If Header Tags works properly, then the problem is in the installation and you will need to compare the files to find the problem.

 

Jack

Share this post


Link to post
Share on other sites
Yes, that is how it should work. If you go to admin->catalog and edit a product, you should see a section named Product Title Tag:, not Products Description. That is where the title for the page is entered.

 

Jack

Hi Jack, thats all working. If I edit a product via admin category/products and change the title, decription and keywords then update, the changes are reflected in the product_description table in products_head_title_tag, products_head_desc_tag and products_head_keywords_tag columns respectively. Thats all working ok. I want these to show as the title, description and keywords on the product_info.php page. At the moment its getting these values from the header_tags.php page so they are the same for all products. HTC must be able to do this otherwise what is the point of adding the extra columns to the product_description table. How do I get it to display individual tags for each product. Cheers.


Webmaster www.SexoticToys.co.uk

Share this post


Link to post
Share on other sites

Hi Jack, Ive worked out the problem and its now working. Somehow I had a version of catalog/includes/header_tags.php that did not have the code in for product_info.php or specials.php. I copied the one from the installation over to my catalog and lo and behold its working. Can't think how that happened but anyway nows the time to push on. Thanks again for trying to help. Cheers


Webmaster www.SexoticToys.co.uk

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
Sign in to follow this  

×