That didn't work either here is the code I am presenting in tpl_header. I am using version 1.3.6
Thanks!
My direct links to define pages are not working. The last link I tried the old way and way suggested above.
Code:
<?php
/**
* Common Template - tpl_header.php
*
* this file can be copied to
/templates/your_template_dir/pagename<br />
* example: to override the privacy page<br />
* make a directory /templates/my_template/privacy<br />
* copy /templates/templates_defaults/common/tpl_footer.php to
/templates/my_template/privacy/tpl_header.php<br />
* to override the global settings and turn off the footer un-comment
the following line:<br />
* <br />
* $flag_disable_header = true;<br />
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public
License V2.0
* @version $Id: tpl_header.php 3392 2006-04-08 15:17:37Z birdbrain $
*/
?>
<?php
// Template designed by www.zen4me.com (c) 2006
//
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) &&
zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) &&
zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<div id="headerWrapper">
<table style="text-align: left; width: 750px;"
>
<tbody>
<tr>
<td colspan="3" rowspan="1" style="width: 124px;"><div
id="navMain">
<ul class="back">
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">';
?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '',
'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '',
'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL');
?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '',
'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING,
'', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>
</ul>
</div></td>
</tr>
<tr>
<td style="width: 430px;"><img alt="personalized gifts and
custom monogramming" src="<?php echo
DIR_WS_TEMPLATE_IMAGES?>logo.png"></td>
<td style="width: 160px; vertical-align: bottom;"><ul>
<li><a href="<?php echo zen_href_link('privacy')?>">Privacy
Notice</a></li>
<li><a href="<?php echo
zen_href_link('conditions')?>">Condition of Use</a></li>
<li><a href="<?php echo
zen_href_link('shippinginfo')?>">Shipping & Returns</a></li>
<li><a href="<?php echo
zen_href_link('contact_us')?>">Contact Us</a></li>
<li><a href="<?php echo zen_href_link('site_map')?>">Site
Map</a></li>
<li><a href="<?php echo zen_href_link(FILENAME_SHIPPING)?>">Shipping
& Returns</a></li>
</ul>
</td>
<td style="width: 160px; vertical-align: top;"><a href="<?php
echo zen_href_link('shopping_cart')?>"><img src="<?php echo
DIR_WS_TEMPLATE_IMAGES?>cart.gif" ></a></div>
<br /><?php
if (SHOW_TOTALS_IN_CART == '1') {
echo '<strong>' . $_SESSION['cart']->count_contents() .
' ' . 'items</strong>' . ' ' . 'in your cart' . '<br />' .
$currencies->format($_SESSION['cart']->show_total());
} ?> </td>
</tr>
</tbody>
</table>
<table class="zmhb01" width="750" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="175" valign="bottom">
<strong>Find:</strong>
<?php echo
zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT)?>
<?php echo zen_draw_hidden_field('search_in_description',
'1')?>
<?php echo zen_draw_input_field('keyword')?><input name=""
type="hidden">
</td>
<td width="198" align="left" valign="bottom">
<strong>Currencies:</strong>
<?php echo zen_draw_form('currencies',
zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '',
$request_type, false), 'get')?>
<?php reset($currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' =>
$value['title']);
}
$hidden_get_variables = '';
// reset($HTTP_GET_VARS);
//while (list($key, $value) = each($HTTP_GET_VARS)) {
if ( ($key != 'currency') && ($key != zen_session_name()) &&
($key != 'x') && ($key != 'y') ) {
$hidden_get_variables .= zen_draw_hidden_field($key, $value);
}
//}
echo zen_draw_pull_down_menu('currency', $currencies_array,
$_SESSION['currency'], 'onchange="this.form.submit();" class=select')
. $hidden_get_variables . zen_hide_session_id()?>
</form> </td>
<td width="377">
<div class="zmhb07">
<ul>
<li><a href="<?php echo
zen_href_link('featured_products')?>">Featured</a></li>
<li><a href="<?php echo
zen_href_link('specials')?>">Specials</a></li>
<li><a href="<?php echo
zen_href_link('products_new')?>">New</a></li>
<li><a href="<?php echo zen_href_link('products_all')?>">All
Products</a></li>
</ul>
</div>
</td>
</tr>
</table>
</div>
<?php } ?>