ahall13:
OK, what I did was place the code in the current tpl_footer but since it was showing duplicate footer information ie items from tpl_footer and info from footer1 or footer2 depending on the page I just gutted tpl_footer. Now the file is basically a pointer to either of the other 2 footer files. I don't think that is the best way of doing it, but I couldn't find much info in a search of the forum or in the faq about calling php files.
This might work a bit better:
open includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php
find the following section of code (at around line 156)
<?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;
}
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
?>
and replace it with the following:
<?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;
}
if ($this_is_home_page) {
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
}
else
{
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer2.php');
}
?>
NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.