Guest Posted March 24, 2013 Posted March 24, 2013 Hi on a page I made in a oscommerce website, all looks fine but the footer is not being displayed but the coding for the template_bottom is in the page I have put the coding below <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_BESTSELLERS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_BESTSELLERS)); require(DIR_WS_INCLUDES . 'template_top.php'); ?> <h1><?php echo HEADING_TITLE; ?></h1> <div class="contentContainer"> <div class="contentText"> <?php $best_sellers_query = tep_db_query("select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_ordered from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_ordered > 0 and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by p.products_ordered DESC, pd.products_name limit " . MAX_DISPLAY_NEW_PRODUCTS); $row = 0; $col = 0; while ($best_sellers = tep_db_fetch_array($best_sellers_query)) { $best_sellers['products_name'] = tep_get_products_name($best_sellers['products_id']); $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText bestsellers" width="33%" valign="top"', 'text' => '<a "href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $best_sellers['products_image'], $best_sellers['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']) . '">' . $best_sellers['products_name'] . '</a><br>' . $currencies->display_price($best_sellers['products_price'], tep_get_tax_rate($best_sellers['products_tax_class_id'])) . '<br>' . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', tep_href_link(FILENAME_BESTSELLERS, tep_get_all_get_params (array('action')) . 'action=buy_now&products_id=' . $best_sellers['products_id']))); $col ++; if ($col > 2) { $col = 0; $row ++; } } new contentBox($info_box_contents); /*echo tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params (array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']));*/ //echo tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params //(array('action')) . 'action=buy_now')); ?> <div> <span style="float: right;"><?php echo TEXT_RESULT_PAGE . ' ' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></span> <span><?php echo $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW); ?></span> </div> <br /> <div> <?php echo TEXT_NO_NEW_PRODUCTS; ?> </div> </div> </div> <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Any ideas, don't think I am missing any divs or anything
PupStar Posted March 24, 2013 Posted March 24, 2013 have you checked the code on the page where you are calling the bestsellers page because I have just tried the above code and my footer is there.
Guest Posted March 24, 2013 Posted March 24, 2013 Do you mean check the bestsellers.php page or the includes/languages/english/bestsellers.php page
Guest Posted March 24, 2013 Posted March 24, 2013 Yeah sure the link is below http://www.affordablechildrenswear.com/bestsellers.php
PupStar Posted March 24, 2013 Posted March 24, 2013 I dont think the issue is with your bestsellers.php page but with another file. If you look at the browser source code it is cut off prematurely.
Guest Posted March 24, 2013 Posted March 24, 2013 I noticed that as well, the coding stops at a certain point before the footer coding etc What other file could the issue be with, do you know? I will Google it as well now and see if I can find out what file
Recommended Posts
Archived
This topic is now archived and is closed to further replies.