Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  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       |
    // | [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_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
    22,010
    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
    22,010
    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.

  5. #15
    Join Date
    Dec 2014
    Location
    manchester
    Posts
    62
    Plugin Contributions
    0

    Default Re: No products on category level

    Quote Originally Posted by gjh42 View Post
    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

  6. #16
    Join Date
    Oct 2015
    Location
    MS Gulf Coast
    Posts
    38
    Plugin Contributions
    0

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

  7. #17
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default 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

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Products in Top Level Category - Easy Populate Problem
    By stomm in forum Setting Up Categories, Products, Attributes
    Replies: 13
    Last Post: 14 Jan 2010, 01:16 PM
  2. Top Level Category - Show ALL Products Option
    By stiggy100 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Jan 2010, 04:59 AM
  3. Products In Top Level Category Error
    By jill8026 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Nov 2009, 04:22 PM
  4. Products in top level category
    By mmcs in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 20 Mar 2009, 02:11 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR