Hello,
I have a problem, on my site there is a section which used HEADING_TITLE description, and it works fine on my home page, category pages but as far as my product detail page, it shows HEADING_TITLE. Not sure how to fix it. I have attached 3 images showing this
1.) HOME PAGE
2.) CAT PAGE
3.) PRODUCT PAGE - THIS IS WHERE THE ERROR IS
Can any1 tell me what to do to fix this. Just in case I have attached copy of the tpl_main_page.php file here
Thanks in advance for your help!Code:<?php /** * Common Template - tpl_main_page.php * * Governs the overall layout of an entire page<br /> * Normally consisting of a header, left side column. center column. right side column and footer<br /> * For customizing, 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_main_page.php to /templates/my_template/privacy/tpl_main_page.php<br /> * <br /> * to override the global settings and turn off columns un-comment the lines below for the correct column to turn off<br /> * to turn off the header and/or footer uncomment the lines below<br /> * Note: header can be disabled in the tpl_header.php<br /> * Note: footer can be disabled in the tpl_footer.php<br /> * <br /> * $flag_disable_header = true;<br /> * $flag_disable_left = true;<br /> * $flag_disable_right = true;<br /> * $flag_disable_footer = true;<br /> * <br /> * // example to not display right column on main page when Always Show Categories is OFF<br /> * <br /> * if ($current_page_base == 'index' and $cPath == '') {<br /> * $flag_disable_right = true;<br /> * }<br /> * <br /> * example to not display right column on main page when Always Show Categories is ON and set to categories_id 3<br /> * <br /> * if ($current_page_base == 'index' and $cPath == '' or $cPath == '3') {<br /> * $flag_disable_right = true;<br /> * }<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_main_page.php 3856 2006-06-29 02:26:33Z drbyte $ */ // the following IF statement can be duplicated/modified as needed to set additional flags if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) { $flag_disable_right = true; } $header_template = 'tpl_header.php'; $footer_template = 'tpl_footer.php'; $left_column_file = 'column_left.php'; $right_column_file = 'column_right.php'; $body_id = str_replace('_', '', $_GET['main_page']); ?> <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>> <table width="770" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="230"><img src="<? echo DIR_WS_TEMPLATE; ?>images/mainpix01.gif" alt="mainpix01" width="230" height="201"/></td> <td width="337"><img src="<? echo DIR_WS_TEMPLATE; ?>images/mainpix02.gif" alt="mainpix02" width="337" height="201"/></td> <td valign="top" width="178"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/but00.gif" alt="but00" width="178" height="22"/></td> </tr> <tr> <td><a href="index.php"><img src="<? echo DIR_WS_TEMPLATE; ?>images/but01.gif" alt="but01" width="178" height="30" border="0"/></a></td> </tr> <tr> <td><a href="index.php?main_page=products_new"><img src="<? echo DIR_WS_TEMPLATE; ?>images/but02.gif" alt="but02" width="178" height="31" border="0"/></a></td> </tr> <tr> <td><a href="index.php?main_page=account"><img src="<? echo DIR_WS_TEMPLATE; ?>images/but03.gif" alt="but03" width="178" height="31" border="0"/></a></td> </tr> <tr> <td><a href="index.php?main_page=shopping_cart"><img src="<? echo DIR_WS_TEMPLATE; ?>images/but04.gif" alt="but04" width="178" height="29" border="0"/></a></td> </tr> <tr> <td><a href="index.php?main_page=contact_us"><img src="<? echo DIR_WS_TEMPLATE; ?>images/but05.gif" alt="but05" width="178" height="31" border="0"/></a></td> </tr> <tr> <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/but06.gif" alt="but06" width="178" height="27"/></td> </tr> </table></td> <td bgcolor="#f5dfdf"><img src="<? echo DIR_WS_TEMPLATE; ?>images/mainpix05.gif" alt="mainpix05" width="25" height="201"/></td> </tr> </table></td> </tr> <tr> <td class="bg_top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="32"> <!--<img src="<? echo DIR_WS_TEMPLATE; ?>images/spacer.gif" alt="spacer" width="132" height="0"/>--> </td> <td width="200"><table width="90%" align="center" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="10"><img src="<? echo DIR_WS_TEMPLATE; ?>images/icon_arrow.gif" alt="icon_arrow" width="5" height="5" /></td> <td class="txt_content"><a href="index.php?main_page=specials">Specials</a></td> </tr> <?php if ($_SESSION['customer_id']) { ?> <tr> <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/icon_arrow.gif" alt="icon_arrow" width="5" height="5" vspace="3" /></td> <td class="txt_content"><a href="index.php?main_page=logoff">Log Out </a></td> </tr> <? } else { ?> <tr> <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/icon_arrow.gif" alt="icon_arrow" width="5" height="5" /></td> <td class="txt_content"><a href="index.php?main_page=create_account">Create Account </a></td> </tr> <tr> <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/icon_arrow.gif" alt="icon_arrow" width="5" height="5" vspace="3" /></td> <td class="txt_content"><a href="index.php?main_page=login">Customer Login </a></td> </tr> <? } ?> </table></td> <td width="3"><img src="<? echo DIR_WS_TEMPLATE; ?>images/line.gif" alt="line" width="3" height="50"/></td> <td width="263"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="50"><img src="<? echo DIR_WS_TEMPLATE; ?>images/icon_cart.gif" alt="icon_cart" width="34" height="34"/></td> <td class="txt_content01">Your Shopping Cart<br /> in your cart <?php require(DIR_WS_TEMPLATE .('modules/shopping_cart.php')); ?> ITEMS</td> </tr> </table></td> <td width="3"><img src="<? echo DIR_WS_TEMPLATE; ?>images/line.gif" alt="line" width="3" height="50"/></td> <td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="20" class="txt_content"> Quick Search: <?php require(DIR_WS_TEMPLATE .('modules/search.php')); ?> </td> <!-- </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="120"><?php require(DIR_WS_TEMPLATE .('modules/search.php')); ?></td> </tr> </table></td> --> </tr> </table></td> </tr> </table></td> </tr> <tr> <td bgcolor="#f5dfdf"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="400"><img src="<? echo DIR_WS_TEMPLATE; ?>images/mainpix04.gif" alt="mainpix" width="400" height="27"/> </td><td width="100%"> <img src="<? echo DIR_WS_TEMPLATE; ?>images/mainpix06.gif" alt="mainpix" width="100%" height="27"/> </td> <!-- <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td class="txt_content">Choose Language: </td> <td><?php require(DIR_WS_TEMPLATE .('modules/languages.php')); ?></td> <td class="txt_content">Currencies:</td> <td><?php require(DIR_WS_TEMPLATE .('modules/currencies.php')); ?></td> </tr> </table></td> --> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="6"> </td> <td width="178" valign="top" class="bg_left"><?php require(DIR_WS_TEMPLATE .('modules/column_left.php')); ?></td> <td width="5"> </td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/trans.gif" alt="trans" width="1" height="10"/></td> </tr> <tr> <td height="25" bgcolor="#CCCCCC"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="14"> </td> <td class="txt_content07"><?php echo HEADING_TITLE . $products_name; ?> </td> </tr> </table></td> </tr> <tr> <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/trans.gif" alt="trans" width="1" height="5"/></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <table cellpadding="0" cellspacing="0" border="0" style="width:100%; "><tr><td style="width:100%; vertical-align:top; "> <?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?> <?php } ?> <!-- eof breadcrumb --> <?php if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> <!-- bof upload alerts --> <?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?> <!-- eof upload alerts --> <?php /** * prepares and displays center column * */ require($body_code); ?> <?php if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> </td> <?php if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) { // global disable of column_right $flag_disable_right = true; } if (!isset($flag_disable_right) || !$flag_disable_right) { ?> <td style="vertical-align:top; width:100%; "><?php require(DIR_WS_TEMPLATE .('modules/column_right.php')); ?></td> <?php } ?> </tr></table> </td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="6"> </td> <td width="178" valign="top"><img src="<? echo DIR_WS_TEMPLATE; ?>images/bottom_left.gif" alt="bottom_left" width="178" height="11"/></td> <td width="5"> </td> <td> </td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="30" style="background-color:#666666; "><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="20" style="color:#ffffff; " class="txt_bottom"><a href="index.php?main_page=shippinginfo">Shipping & Returns</a> | <a href="index.php?main_page=privacy">Privacy Notice</a> | <a href="index.php?main_page=conditions">Conditions of Use</a> | <a href="index.php?main_page=contact_us">Contact Us</a> | <a href="index.php?main_page=specials">Specials</a> | <a href="index.php?main_page=reviews">Reviews</a></td> </tr> </table></td> </tr> <tr> <td height="20"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="left" class="txt_content03"> <!--bof- site copyright display --> <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?> Web Development by <a href="http://www.henastudio.com">HenaStudio.com</a></div> <!--eof- site copyright display --> </div></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table> </body>










Bookmarks