Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2010
    Posts
    15
    Plugin Contributions
    0

    Default Problem displaying footer content

    Zencart version: 1.3.8a
    PHP Version: 5.2.13 (Zend: 2.2.0)

    Hi,

    I have overridden the tpl_footer.php under includes/templates/<my_template>/common/

    It was working perfectly until I installed categories_dressing_2-7-3. Since there are some other problems with the mod I undo all new/modified files associated with it. But then my footer no longer being displayed. I changed to classic default template and the footer does show up though.

    I tried to debug the problem by echoing the following line (in red) in tpl_main_page.php where it gets the footer.php.


    <?php
    /**
    * prepares and displays footer output
    *
    */
    if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
    $flag_disable_footer = true;
    }

    echo DIR_WS_TEMPLATE; //<---debug

    require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
    ?>

    It shows "includes/templates/<my_template>/" in the footer area of my web page. HOWEVER, if I place the same debug line AFTER the require(...) line, nothing shows.

    Is it because the require(...) function failed to get my tpl_footer.php?? (I tried to debug inside tpl_footer.php and nothing shows) What can I do to fix this???

    Please, any help is much appreicated!

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Problem displaying footer content

    I think you are over-egging your omelette...

    Before you start really hacking away at the code, just make sure that needed php files are in their respective directories.

    You say you have an over-ride for footer.php that is not working?

    Then either REPLACE it with the original core, or do a COMPARE (using winmerge) to see where possible problems may lie.

    As this is your first post, and you have just joined, I assume your store is not trading. So it's safe to revert.
    20 years a Zencart User

  3. #3
    Join Date
    Apr 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Problem displaying footer content

    So I replaced my tpl_footer with the default, uploaded to server, and it did show the content! Then I added my modified code back to it and finally it works! Maybe the file on the server was somehow not getting refreshed? Anyways, thanks for the advice!

 

 

Similar Threads

  1. v154 ez page content not displaying
    By metoo in forum Addon Sideboxes
    Replies: 0
    Last Post: 29 Jan 2015, 06:51 PM
  2. Replies: 1
    Last Post: 16 Sep 2013, 03:49 PM
  3. information box content in footer
    By keneso in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Jan 2011, 06:09 PM
  4. DEFINE_PAGE 2, 3, 4 Not Displaying Content
    By S2 Operations in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Feb 2010, 03:42 AM
  5. Displaying review content in full
    By dealbyethan.com in forum General Questions
    Replies: 0
    Last Post: 15 Dec 2007, 11:24 AM

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