Forums / Upgrading from 1.2 to 1.3.x / No products on category level

No products on category level

Views: 44,695

Results 1 to 17 of 17
25 Mar 2011, 12:13 AM
#1
johanmeer avatar

johanmeer

New Zenner

Join Date:
Mar 2011
Posts:
7
Plugin Contributions:
0

No products on category level

Hi Guys,

I'm really stuck with a site of mine. The site is: http://www.cornelis.nl
This site is upgraded from 1.2 to 1.3.9, but now on the category level he is not showing products.

Does anyone have an idea?

Kind regards

25 Mar 2011, 7:43 AM
#3
johanmeer avatar

johanmeer

New Zenner

Join Date:
Mar 2011
Posts:
7
Plugin Contributions:
0

Re: No products on category level

Hi, thanks for the reply.

Yes, what you see is 'some of our products' But i want to see the products that are under the categories.

Thanks

25 Mar 2011, 10:19 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: No products on category level

The products that show in a category's listing do belong to those categories, according to the cPaths. Are these not in the "Gebac" category?

Gebak

Greep uit onze assortiment - Gebak

Wallona
€2.20
Champagne
€2.20
Truffel
€2.20
Appel calvados
€2.20
Limoen meringue
€2.20
Cheesecake
€2.20
Yoga aardbei
€2.20
Yoga framboos
€2.20
Yoga bosbes
€2.20

25 Mar 2011, 10:22 AM
#5
johanmeer avatar

johanmeer

New Zenner

Join Date:
Mar 2011
Posts:
7
Plugin Contributions:
0

Re: No products on category level

thanks for the answer.

No,

'greep uit ons assortiment' is meaning: Some of our products. ( selection of the products )

There are many more products in the category than then website is showing.

25 Mar 2011, 10:25 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: No products on category level

Hmm... by "under the categories", do you mean in the column below the category sidebox? Are you wanting to see those (random) products be selected from the current category only?

Oh, okay. You're saying that the product listing is not showing all of the products in that category. What happens if you switch templates to "Classic"?

25 Mar 2011, 10:27 AM
#7
johanmeer avatar

johanmeer

New Zenner

Join Date:
Mar 2011
Posts:
7
Plugin Contributions:
0

Re: No products on category level

No, when i'm select a category i just want to show the products that or listing in that category. sorry, 'under' must be 'in'

25 Mar 2011, 10:49 AM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: No products on category level

I see the problem. I thought you had a customized product listing display, but what you have is the "new products" centerbox. The actual product listing is not displaying at all.
There is a setting to turn off the subcategories listing, but I don't believe there is one to turn off the product listing for a category. It would be counterproductive to not show all of the products in a category. I think we need to see the content of your /includes/modules/cornelis/product_listing.php to find out why it is not showing.

25 Mar 2011, 10:56 AM
#9
johanmeer avatar

johanmeer

New Zenner

Join Date:
Mar 2011
Posts:
7
Plugin Contributions:
0

Re: No products on category level

Can i PM you the FTP settings? so you can see?

I would be very pleased if you would do that for me.....

25 Mar 2011, 5:57 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: No products on category level

I checked, and it's actually /includes/templates/your_template/templates/tpl_modules_product_listing.php that is most likely the culprit. If you post that here, betwen ```
[php] and [/php]

25 Mar 2011, 6:38 PM
#11
johanmeer avatar

johanmeer

New Zenner

Join Date:
Mar 2011
Posts:
7
Plugin Contributions:
0

Re: No products on category level

Hi, thanks already!!

<?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>
25 Mar 2011, 9:01 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

25 Mar 2011, 9:22 PM
#13
johanmeer avatar

johanmeer

New Zenner

Join Date:
Mar 2011
Posts:
7
Plugin Contributions:
0

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?

25 Mar 2011, 9:44 PM
#14
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

30 Apr 2015, 8:52 AM
#15
simon3215 avatar

simon3215

New Zenner

Join Date:
Dec 2014
Location:
manchester
Posts:
62
Plugin Contributions:
0

Re: No products on category level

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

10 Nov 2016, 4:05 PM
#16
buddys avatar

buddys

New Zenner

Join Date:
Oct 2015
Location:
MS Gulf Coast
Posts:
38
Plugin Contributions:
0

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

10 Nov 2016, 7:20 PM
#17
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

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=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiY--yH9J7QAhVMxGMKHVKDBN8QFggbMAA&url=https%3A%2F%2Fwww.zen-cart.com%2Fcontent.php%3F124-blank-page&usg=AFQjCNESKX3dL4M-W_VZu87HS4wBIF2D_w&bvm=bv.138169073,d.amc

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com