Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Tag Controller Configuration


EM60

Recommended Posts

Hi all

 

I hope someone can help !

 

I have got Header Tag Controller V2 installed and working on a Dec 2002 osCommerce Snapshop.

 

If I am selecting a category ie this uses default.php I get the Default Title as set in

 

catalog/includes/languages/english/header_tags.php

 

displayed first and then the name of the category (this is dynamic) so it changes as you select a different category .

 

What I would like to do is to display the Category first and then the Default Title afterwards.

 

Which files do I need to modify and please can you advise which code to change and to change to what too !

 

Thank you in advance

 

Kind regards

 

EM60

Link to comment
Share on other sites

I did the same. Edit /includes/header_tags.php

 

There's three lines per setion that read something like:

if (HTDA_ALLPRODS_ON=='1') {

$the_desc= $the_category['categories_name'] . " " . $the_manufacturers['manufacturers_name'] . " | " . HEAD_DESC_TAG_ALLPRODS . ' ' . HEAD_DESC_TAG_ALL;

} else {

$the_desc= HEAD_DESC_TAG_ALLPRODS;

}

 

Swap the fields around as you want them.

 

Dylan

Link to comment
Share on other sites

Hello again,

 

As a follow up to above. I wonder if anyone would advise how I can include the dynamic page title (which would be a product name) to the keywords by way of coding it . So it happens automatically without having to manually put it in via the Header Tag Admin Control ?

 

Any help would be appreciated !

 

thanks

 

EM60

Link to comment
Share on other sites

Run the following SQL from phpMyAdmin or whatever console you're using:

 

UPDATE `products_description` SET `products_head_title_tag` = concat(`products_name` ," from Custom Made Crafts"),

`products_head_desc_tag` = concat( `products_name` , " from Custom Made Crafts"),

`products_head_keywords_tag` = concat(`products_name` ," ,hand made crafts, custom made crafts");

 

You will need to put in your keywords of course. I do need to mod this to pick yup the keywords per section.

 

Dylan

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...