Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with Categories


passcat

Recommended Posts

Hi,

 

I have added a new category called for her to my shop, and in that category i have added 4 sub catorgories.

When i click on the for her catorgory nothing shows up, it just says There are no products to list in this category.

 

It should show the sub catorgories.

Does anyone know what i have done wrong.

 

Please Help.

Link to comment
Share on other sites

there is a known bug, if sub cats have no product they will not show

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi,

 

I have researched how to add new catergories and sub catergories and have followed the instructions that were given,

But i am still not seeing any of the sub catergories, all i am seeing is "There are no products to list in this category".

 

Please can anyone Help.

Link to comment
Share on other sites

I have this exact same problem & after going through the whole database cannot work out why it happening.....

 

Have a look at my site http://www.nancysassi.com

 

Ladies Clothing shows subcategories but when you click on Vintage Furniture where there are clearly subcategories nothing is showing.

 

Sorry I can't be of help but if I find a solution I'll post it up on here otherwise I'll have to work ut a way around it.

Link to comment
Share on other sites

I have this exact same problem & after going through the whole database cannot work out why it happening.....

 

Have a look at my site http://www.nancysassi.com

 

Ladies Clothing shows subcategories but when you click on Vintage Furniture where there are clearly subcategories nothing is showing.

 

Sorry I can't be of help but if I find a solution I'll post it up on here otherwise I'll have to work ut a way around it.

 

 

I should say, are you using Easy Populate by any chance?? I thought it might be a bug with that??

Link to comment
Share on other sites

I have this exact same problem & after going through the whole database cannot work out why it happening.....

Are there any inactive products in your category 24? The query in the top of index.php assumes there are products to lists when there are product associated with it. But if they are inactive they wouldn't show in the products listing.

  if (isset($cPath) && tep_not_null($cPath)) {
$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$cateqories_products = tep_db_fetch_array($categories_products_query);
if ($cateqories_products['total'] > 0) {
  $category_depth = 'products'; // display products
} else {

That count query should probably look at products_status too...

Link to comment
Share on other sites

Are there any inactive products in your category 24? The query in the top of index.php assumes there are products to lists when there are product associated with it. But if they are inactive they wouldn't show in the products listing.

  if (isset($cPath) && tep_not_null($cPath)) {
$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$cateqories_products = tep_db_fetch_array($categories_products_query);
if ($cateqories_products['total'] > 0) {
  $category_depth = 'products'; // display products
} else {

That count query should probably look at products_status too...

 

 

They are not inactive but I have 0's in the quantity field (i.e. I am not showing a quantity on the site). Would this make a difference by effectively making them inactive??

Link to comment
Share on other sites

They are not inactive but I have 0's in the quantity field (i.e. I am not showing a quantity on the site). Would this make a difference by effectively making them inactive??

It might if you have a added some code to prevent listing of products that have zero for a quantity.

 

What number do you get when you do the following query in phpMyAdmin:

select count(*) as total from products_to_categories where categories_id = '24';

If it is more than zero it confirms my suggestion. Otherwise I wouldn't know either :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...