EM60 Posted February 7, 2004 Share Posted February 7, 2004 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 Quote Link to comment Share on other sites More sharing options...
dyland Posted February 7, 2004 Share Posted February 7, 2004 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 Quote Link to comment Share on other sites More sharing options...
EM60 Posted February 8, 2004 Author Share Posted February 8, 2004 Hi Dyland, Thanks a lot for your prompt reply. That resolved my problem. Thanks again Regards EM60 Quote Link to comment Share on other sites More sharing options...
EM60 Posted February 8, 2004 Author Share Posted February 8, 2004 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 Quote Link to comment Share on other sites More sharing options...
dyland Posted February 8, 2004 Share Posted February 8, 2004 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.