Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category problem "There are no products to list in


Recommended Posts

Posted

Posted this in other forum with no response - please help

 

When I click on a category - it shows a message of "There are no products to list in this category." even though it has sub categories.

 

How do I stop it from showing that message please?

Thanks

Posted (edited)

you need to find the following line

 

 ?define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

 

in the catalog/includes/languages/english/index.php

 

Change it to

 

 ?define('TEXT_NO_PRODUCTS', 'Please Choose a Sub-Category');

 

This would display on any category without products but in practice there should never really be a category without items AND sub-categories so this should work well for you.

 

Alternatively

 

 ?define('TEXT_NO_PRODUCTS', '');

 

Would remove the text all together but leave the option to add it later without trawling code.

 

Cya

Stot

Edited by Stot
Posted

Hello,

thanks for the help but that is not the problem. My main categories have subcategories. When I click on a main category I should get the images of the subcategories. I am not getting that. I am getting the message of no products

Posted

Sorry I thought you were getting your categories and that message showing.

 

I put up a test category with just categories in it and worked ok, have you got any contributions installed that change the index.php?

 

Cya

Stot

Posted

No so far it is a fresh install with nothing else there. You can see an example at www.groupbuyers.net/buys -

http://www.groupbuyers.net/apreub/index.php/cPath/26 - this is a main category with 2 subcategories so far but when you click it is says no items - it does not show the subcategories in the main page as it should.

 

 

And this subcategory also shows empty although it has several other subcategories in it - http://www.groupbuyers.net/apreub/index.php/cPath/26_27

 

 

Also, any idea on how I can get that arrow out of the first category. I do not have that problem with any other category

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...