Zen Cart Logo
Forums / General Questions / Adding the footer

Adding the footer

Locked

Views: 964

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
4 Oct 2007, 8:30 AM
#1
roscoeh avatar

roscoeh

New Zenner

Join Date:
May 2007
Posts:
31
Plugin Contributions:
0

Adding the footer

Hi,

I stupidly took out the footer when I first started customising and now want to put it back in.

The problem is I cannot rember what template file it belongs to and what line(s) I need to alter.

Can anyone help?

Thanks.

4 Oct 2007, 11:44 AM
#2
rufus avatar

rufus

Zen Follower

Join Date:
Sep 2007
Posts:
214
Plugin Contributions:
0

Re: Adding the footer

Hi,

The footer is in:
includes/templates/yourtemplate/common/tpl_main_page.php

The actual footer itself is:
includes/templates/yourtemplate/common/tpl_footer.php

If you have removed the code from tpl_main_page you will need to replace the following

<?php
 /**
  * prepares and displays footer output
  *
  */
  require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
</div>
<!--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 -->

If you have deleted tpl_footer.php you should be able to get a copy of it out of your original download zip file to replace it.

I also suggest you use the override system, this way when you want to revert back to the original code it will always be there. This has saved me numerous times....

Let me know how you get on :blink: