Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Mar 2011
    Posts
    7
    Plugin Contributions
    0

    Default 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       |
    // | license@zen-cart.com 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_CARTBUTTON_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_LINKSzen_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_LINKSzen_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_CARTBUTTON_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>

  2. #12
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,820
    Plugin Contributions
    25

    Default 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.
    Last edited by gjh42; 25 Mar 2011 at 10:05 PM.

  3. #13
    Join Date
    Mar 2011
    Posts
    7
    Plugin Contributions
    0

    Default 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?

  4. #14
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,820
    Plugin Contributions
    25

    Default 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.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. WARNING: You have Products in the Top Level Category
    By orca in forum General Questions
    Replies: 2
    Last Post: 12 Mar 2010, 10:27 PM
  2. Products In Top Level Category Error
    By jill8026 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Nov 2009, 04:22 PM
  3. Products in top level category
    By mmcs in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 20 Mar 2009, 02:11 PM
  4. How can I show all products at each category level?
    By anduril3019 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 6 Apr 2007, 05:40 PM
  5. View all products in top level category?
    By doodlebee in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 15 Nov 2006, 11:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •