Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2007
    Posts
    56
    Plugin Contributions
    1

    customer issue Footer Display Problem

    Hi,
    I am not very much familier with Zen Cart. But truely, I am making sites using ZenCart. I am facing problem in the site www.bestflorist4u.com in footer display.

    I have already made Admin>Tools>EZ Pages> Footer > "on" and also put the order. But it is not displaying in my site. Will any one please help me out from this problem?

    With Best Regards,
    WDH

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Footer Display Problem

    I'm afraid that this doesn't really make sense. There's no such setting as
    Quote Originally Posted by wdh View Post
    Admin>Tools>EZ Pages> Footer > "on"
    Also I can't see any evidence of a footer into which your EZ_Page links could show anyway. It looks as though your tpl_main_page.php has been re-0written and the footer has been left out completely.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Oct 2007
    Posts
    56
    Plugin Contributions
    1

    Default Re: Footer Display Problem

    Hi Kuroi,
    You are right, I modified the tpl_main_page.php. The code is as follows ::

    -------------------Code start----------------------------------
    ------------------------------------------------------------------
    <?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 3183 2006-03-14 07:58:59Z birdbrain $
    */

    // 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 leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?> onunload="GUnload();">
    <div id="mainWrapper">
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="left" valign="top">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr align="left" valign="top">
    <td bgcolor="#E5C2D5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="125" align="left" valign="top">
    <?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
    // 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-->
    </td>
    </tr>
    <tr>
    <td align="left" valign="middle"> &nbsp;&nbsp;&nbsp;ok</td>
    </tr>
    </table></td>
    <td width="347" background="../images/newtopback.jpg">&nbsp; </td>
    <td width="254" align="right"><img src="../images/pradhantemp.jpg" width="254" height="198"></td>
    </tr>
    <tr align="left" valign="top" bgcolor="#B6156B">
    <td height="30" colspan="3">
    <!--bof-navigation display-->
    <div id="navMainWrapper"> <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a><font color="#FFFFFF">
    || </font></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a><font color="#FFFFFF">
    || </font></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a><font color="#FFFFFF">
    || </font></li>
    <!--bof-header ezpage links-->
    <li>
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?></font>
    </li>
    <!--eof-header ezpage links-->
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a><font color="#FFFFFF">
    || </font></li>
    <!--bof-header ezpage links-->
    <li>
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?></font>
    </li>
    <!--eof-header ezpage links-->
    <?php } } ?></div>
    <div class="navMainSearch forward">
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo "<font ############################## size=2>Show My ".HEADER_TITLE_CART_CONTENTS."</font>"; ?>&nbsp;&nbsp;&nbsp;<img src="../includes/templates/sage/images/temp_cart.jpg">&nbsp;&nbsp</a>&nbsp;&nbsp;&nbsp;<br>
    <a href="http://pradhanflorist.com/index.php?main_page=checkout_payment_address"><?php echo "<font ############################## size=2>Change Delivery Address</font>"; ?>&nbsp;&nbsp;<img src="../includes/templates/sage/images/temp_cart.jpg">&nbsp;&nbsp;</a>&nbsp;&nbsp;&nbsp;<br>
    <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo "<font ############################## size=2>Go To ".HEADER_TITLE_CHECKOUT."</font>"; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<img src="../includes/templates/sage/images/checkout.gif">&nbsp;&nbsp;</a><br>
    <a href="http://pradhanflorist.com/index.php?main_page=logoff"><?php echo "<font ############################## size=2>Log Out Here</font>"; ?></a>&nbsp;&nbsp;&nbsp;<br>
    <?php }?>
    </ul>
    <?php //require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
    </div>
    <br class="clearBoth" /> </div>
    <!--eof-navigation display-->
    <!--eof-header logo and navigation display-->
    <!--bof-optional categories tabs navigation display-->
    <?php //require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display--></div></td></tr>
    </table></td></tr>
    <tr>
    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
    <tr>
    <td align="left" valign="top" class="columnLeft" id="navColumnOne" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">&nbsp;</td>
    <td width="622" align="left" valign="top">&nbsp;</td>
    </tr>
    <tr>
    <?php

    if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
    // global disable of column_left
    $flag_disable_left = true;
    }
    if (!isset($flag_disable_left) || !$flag_disable_left) {
    ?>
    <td width="200" align="left" valign="top" class="columnLeft" id="navColumnOne" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
    <?php
    /**
    * prepares and displays left column sideboxes
    *
    */
    ?>
    <div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>" align="left">
    <?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?>
    </div></td>
    <?php
    }
    ?>
    <td align="left" valign="top">
    <!-- bof breadcrumb -->
    <?php if (DEFINE_BREADCRUMB_STATUS == '1' && ($current_page!='index' || (int)$cPath>0 ))
    { ?>
    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    <? } ?>
    <? // include "flash.php"; ?>
    <!-- eof breadcrumb -->
    <?
    if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3))
    {
    if ($banner->RecordCount() > 0)
    { ?>
    <div id="bannerThree" class="banners">
    <? echo zen_display_banner('static', $banner); ?>
    </div>
    <?
    }
    }
    ?>
    <?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">
    <? echo zen_display_banner('static', $banner); ?>
    </div>
    <?php
    }
    }
    ?>
    <!--div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"></div--></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)
    {
    ?>
    <?php
    }
    ?>
    </tr>
    </table></td>
    </tr>
    </table>
    <?php
    /**
    * prepares and displays footer output
    *
    */
    require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
    <!--bof- parse time display -->
    <?php
    if (DISPLAY_PAGE_PARSE_TIME == 'true') {
    ?>
    <div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
    <?php
    }
    ?>
    <!--eof- parse time display -->
    <!--bof- banner #6 display -->
    <!--eof- banner #6 display -->
    </body>

    -----------------------------------------------------------------------
    --------------------------Code End----------------------------------

    Will you please help me where is my wrongs?

    With Best Regards,
    WDH

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Footer Display Problem

    I'm sorry, I see too many things wrong here to cover in a forum post. My recommendation would be to return to the default main_page template and follow the guidance in the FAQ for building a template the Zen Cart way. There's nothing in your design that requires you to hack the code like to achieve the look that I think you're after.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Oct 2007
    Posts
    56
    Plugin Contributions
    1

    Default Re: Footer Display Problem

    Dear Kuroi,
    I have solved the problem. It was problem in footer display in footer.php. Will you please tell me if i want to display "ALL Products" in the home page insteed of New Products for the month of November, then what i have to do?

    With best regards,
    WDH

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Footer Display Problem

    The easiest way would be to use the same new_products.php module but remove the date range limit i.e. set it to be an empty string at the top of the file and then change the associated language files to introduce it differently.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Oct 2007
    Posts
    56
    Plugin Contributions
    1

    Default Re: Footer Display Problem

    Thanks for your kind information, I will have to try this. But I don't know if it is possible or not.

    With Best Regards,
    WDH

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Footer Display Problem

    If it wasn't possible, I wouldn't have suggested it!
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Oct 2007
    Posts
    56
    Plugin Contributions
    1

    Default Re: Footer Display Problem

    Dear Kuroi,
    Sorry dear, I don't wanted to hurt you. I mean to say, if it is possible for me to do so .. bcoz i am layman.. Its frank. Any ways, I will try my best with your suggession. And one thing will you please tell me if it is possble, I want to show the Buy Now button in the home page with the New Product for the Month of November. Please help me.

    With Best Regards,
    WDH

  10. #10
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Footer Display Problem

    Yes. That can be done, but it's fairly complex. You would have to find the add to cart code for one of the listings pages, insert it into the new products module and adapt it slightly to fit the new location. I don't recommend trying this until you have a good grasp of Zen Cart's add to cart functions and switches, as the code is written to deal with a variety of situations which you would need to understand before you start trying to change it.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Display of Footer Bar
    By centurion111 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Apr 2010, 02:41 PM
  2. Display categories in Footer
    By imperialis in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 21 May 2009, 02:03 AM
  3. Footer Problem and 1 0ther problem!!
    By gibbyky2 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Sep 2008, 03:49 PM
  4. Footer Bar Display
    By tiger in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Jun 2007, 02:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg