Forums / Templates, Stylesheets, Page Layout / missing products from category listing

missing products from category listing

Views: 815

Results 1 to 7 of 7
10 Feb 2013, 8:19 PM
#1
pepperfire avatar

pepperfire

New Zenner

Join Date:
Apr 2008
Posts:
93
Plugin Contributions:
0

missing products from category listing

I seem to have missing products in my category listings. For some bizarre reason they are just not showing. In the menu, they are visible as a choice, but when their directory is chosen, the products disappear.

http://www.peppermaster.com/product

10 Feb 2013, 11:06 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: missing products from category listing

Care to state which ones??

Zen-Venom Get Bitten

11 Feb 2013, 12:00 AM
#3
pepperfire avatar

pepperfire

New Zenner

Join Date:
Apr 2008
Posts:
93
Plugin Contributions:
0

Re: missing products from category listing

To begin with, the under the first main product category; All Purpose Hot Sauces, the drop down menu shows the Smokey Chipotle category. If I click on the master category; All purpose hot sauces, the smokey chipotle does not show in the list of categories.

In the Hot Sweet Seductions Category, it's the Ginger Lime category.

11 Feb 2013, 12:04 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: missing products from category listing

Try turning off your url rewriter and see if that corrects it

Zen-Venom Get Bitten

11 Feb 2013, 2:40 PM
#5
pepperfire avatar

pepperfire

New Zenner

Join Date:
Apr 2008
Posts:
93
Plugin Contributions:
0

Re: missing products from category listing

kobra:

Try turning off your url rewriter and see if that corrects it

That is much easier said than done. Will look into that mod. Thanks.

15 Feb 2013, 5:34 PM
#6
pepperfire avatar

pepperfire

New Zenner

Join Date:
Apr 2008
Posts:
93
Plugin Contributions:
0

Re: missing products from category listing

For anyone else who might experience this difficulty, it turned out to be in the array for the categoryrow.php for the drop down menu.

The snippet read:

}
$title = '';
$num_categories = $categories->RecordCount();

$row = 0;
$col = 1;
$list_box_contents = '';
if ($num_categories > 0) {
if ($num_categories < MAX_DISPLAY_CATEGORIES_PER_ROW || MAX_DISPLAY_CATEGORIES_PER_ROW == 0) {
$col_width = floor(100/$num_categories);
} else {
$col_width = floor(100/MAX_DISPLAY_CATEGORIES_PER_ROW);
}

while (!$categories->EOF) {
if (!$categories->fields['categories_image']) !$categories->fields['categories_image'] = 'pixel_trans.gif';
$cPath_new = zen_get_path($categories->fields['categories_id']);

// strip out 0_ from top level cats
$cPath_new = str_replace('=0_', '=', $cPath_new);

//    $categories->fields['products_name'] = zen_get_products_name($categories->fields['products_id']);

$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
                                       'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '' . $categories->fields['categories_name'] . '</a>');

$col ++;
if ($col > (MAX_DISPLAY_CATEGORIES_PER_ROW -1)) {
  $col = 0;
  $row ++;
}
$categories->MoveNext();

}
}

I changed the $col = 0 and voila, recovered products.

15 Feb 2013, 6:07 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: missing products from category listing

categoryrow.php for the drop down menu.
You might add what template or plugin you added that contains this file

Zen-Venom Get Bitten