EL PASO 1 TE LO DEBES DE SALTAR
FILE CHANGES:
1) ******** NOTE: STS USERS ONLY - Skip to step 1A. *********
******** NOTE: BTS USERS ONLY - Skip to step 1B. *********
Your shop is an STS shop if there is an includes/sts_templates/ directory.
Your shop is a BTS shop if there is a templates directory in the root directory.
For Header Tags to work on a page of your site, that page must have the code
change mentioned below installed. At a minimum, the following files should be
changed:
index.php
product_info.php
Any other file in the root directory (the same location where your index.php
file is located) that you want Header Tags to work with should also be changed.
For example, if you want your privacy page to have its own title and meta tags,
then you should make this change to the privacy.php file. Only files that
contain <title><?php echo TITLE; ?></title> can be altered. Since the <TITLE>
tag is different in popup_image.php and is not handled by Header Tags SEO,
there is no need to modify that file.
In each file you want to edit, make the following modification:
FIND:
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
REPLACE with the following then continue with Step 2:
<?php
/*** Begin Header Tags SEO ***/
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<?php
}
/*** End Header Tags SEO ***/
?>
NO DEVES DE PONER ESE CODIGO EN EL admin.php NI EN EL product_info.php SI PONES EL CODIGO TE VA A DAR UN ERROR CUANDO ENTRES A admin/Header Tags SEO
CADA VES QUE CAMBIES LA PLANTILLA DEL OSCOMMERCE STS DEVES REPETIR EL PASO 1A
1A) ********* FOR STS USERS ONLY *********
STS should be installed first.
=============================================
In includes/modules/sts_inc/general.php,
REPLACE:
$sts->template['headertags']= "<title>" . TITLE ."</title>";
WITH:
if (!isset($sts->template['headertags'])) $sts->template['headertags']= "<title>" . TITLE ."</title>";
$sts->template['headertags_logotext'] = tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME;
$sts->template['text_viewing'] = TEXT_VIEWING;
$sts->template['text_viewing_title'] = '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '"/# ' . $header_tags_array['title'] . '">' . $header_tags_array['title'] . '</a>';
=============================================
In includes/header.php,
FIND:
// START STS 4.1
$sts->restart_capture ('applicationtop2header'); // Capture header from the actual script, needed to take out javascript
// END STS 4.1
ADD BENEATH:
/*** Begin Header Tags SEO ***/
// We include header_tags.php early on to make $header_tags_array available to subsequent scripts
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
require(DIR_WS_INCLUDES . 'header_tags.php');
}
$sts->restart_capture ('headertags');
/*** End Header Tags SEO ***/
=============================================
In your template file (like includes/sts_templates/test/sts_template.html),
REPLACE
<img border="0" src="images/store_logo.png"></td>
WITH
<img border="0" src="images/store_logo.png" alt="$headertags_logotext"></td>
=============================================
In any of the includes/sts_templates/ template files, be sure to place the following in
the <head> section:
<!--$headcontent-->
No hay comentarios:
Publicar un comentario