Re: No products on category level
Hi, thanks already!!
PHP Code:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: tpl_modules_product_listing.php 1038 2005-03-18 07:09:17Z ajeh $
//
?>
<table border="0" width="100%" cellspacing="2" cellpadding="0">
<?php
// only show when there is something to submit and enabled
if ($show_top_submit_button == 'true') {
?>
<tr>
<td align="right" colspan="2"><?php echo zen_image_submit(BUTTON_IMAGE_ADD_CART, BUTTON_ADD_CART_ALT);?>
</td>
</tr>
<?php
} // show top submit
?>
<?php if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
?>
<tr>
<td class="pageresults"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>
<td class="pageresults" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="2" class="productlisting">
<?php
require($template->get_template_dir('tpl_list_box_content.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_list_box_content.php');
?>
</td>
</tr>
<?php if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
?>
<tr>
<td class="pageresults"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>
<td class="pageresults" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>
</tr>
<?php
}
?>
<?php
// only show when there is something to submit and enabled
if ($show_bottom_submit_button == 'true') {
?>
<tr>
<td align="right" colspan="2">
<?php echo zen_image_submit(BUTTON_IMAGE_ADD_CART, BUTTON_ADD_CART_ALT);?></form>
</td>
</tr>
<?php
} // show_bottom_submit_button
?>
<?php if ($show_top_submit_button == 'true' or $show_bottom_submit_button == 'true') { ?>
</form>
<?php } ?>
</table>
Re: No products on category level
You have an ancient version of Zen Cart, about five years old, and the files are quite different from the current version. This one does do much the same things as the current version of it, and it does have the file call that should produce the product listing:
require($template->get_template_dir('tpl_list_box_content.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_list_box_content.php');
That file exists or there would be a fatal error.
I could dig further, but the first thing you need to do to keep from getting hacked is upgrade to the latest version of Zen Cart. This will require redoing your template, as the template system switched from table-based to CSS shortly after your version. It also may resolve your problem, as the current files are built to work correctly.
You say "This site is upgraded from 1.2 to 1.3.9", but the files and output I can see are still the old versions.
Did you merge or update the /cornelis/ template files? If not, that would explain your trouble.
Re: No products on category level
Hi,
Thanks for you're advice.
We have the most paranoid firewall en security layers on our server, and i really like to keep on this version, also with our php version.
What can you advise me otherwise?
Re: No products on category level
Sorry, I can't take time to work on fixing such an old version just because you want to keep it. You will eventually have to upgrade PHP and your Zen Cart, no matter how strict your firewalls are. That will be cheaper than recovering from a hack or breakdown, since your versions of both PHP and ZC are no longer supported or given security patches.
Re: No products on category level
Quote:
Originally Posted by
gjh42
Sorry, I can't take time to work on fixing such an old version just because you want to keep it. You will eventually have to upgrade PHP and your Zen Cart, no matter how strict your firewalls are. That will be cheaper than recovering from a hack or breakdown, since your versions of both PHP and ZC are no longer supported or given security patches.
im having this same problem, im using latest ZC and PHP, the products show up on the homepage under best sellers and new products but not under categories on the categories page, have i missed something really simple ? thanks in advance
Re: No products on category level
With the new version I get everything set, products show up but when you click on them they show a blank page! Any Ideas?????????
Re: No products on category level
You've jumped in to a very old thread. And, with so little information about your version or site, it's hard to help. Search the forum for blank page. You'll find several examples. One would be https://www.google.com/url?sa=t&rct=...38169073,d.amc