Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Meta Tag - Help Please


coyotefan107

Recommended Posts

Try the Header Tag Controller contribution:

 

http://www.oscommerce.com/community/contributions,207

 

You will need to fix what I believe is a typo in the README to Operate.TXT file.

 

Code reads:

 

Replace the existing line in all files that you want to use the Header Tags Controller:

Old Line:

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


New Lines:

<?php
// BOF: WebMakers.com Changed: Header Tag Controller v1.0
// 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 v1.0
?>

NOTE: Rather than remove the original line, I used this block of code that uses the standard TITLE if the header_tags.php file does not exist.

 

Should read:

 

Replace the existing line in all files that you want to use the Header Tags Controller:

Old Line:

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


New Lines:

<?php
// BOF: WebMakers.com Changed: Header Tag Controller v1.0
// 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 v1.0
?>

NOTE: Rather than remove the original line, I used this block of code that uses the standard TITLE if the header_tags.php file does not exist.

 

( I just added the missing semi-colon at the end of <?php echo TITLE; ?> for both the old line and the mod. )

 

It takes a bit of work as you have to change the code for almost all of the pages in the /catalog directory (but not the sub-directories underneath that), but once I had it installed, it's now working like a charm.

 

HTH,

 

Terry

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...