Jump to content

how do i remove "There are no products in this..."


Guest noveltycentral

Recommended Posts

Guest noveltycentral

how do i remove "There are no products in this catagory"?, as my products are in catagorie's under the main catagory it's giving my visitors the wrong impression. What file do i need to edit to remove it.?

Regards

Derren

Link to comment
Share on other sites

The problem with that is it will change through out the site and i think they just want it removed from index page.

I believe they are experiancing same problem as me on my new site all my products r in sub cats in a main cat so it displays annoying message at bottom.

i'm working on this and will post here when i fix it.

Link to comment
Share on other sites

It happens in any category page that contains no prods, even if cat contains subcats with prods.

You can remove it completely in template, skins/your_skin/styleTemplates/content/viewCat.tpl

Look for this block of code:

<!-- BEGIN: noProducts -->

<div>{TXT_NO_PRODUCTS}</div>

<!-- END: noProducts -->




Remove it, or comment the section out like this:




<!-- BEGIN: noProducts

<div>{TXT_NO_PRODUCTS}</div>

END: noProducts -->




The alternative would be to change the message, in which case you leave viewCat.tpl alone and go to your language file:



language/en/lang.inc.php



and find this line:




'no_prods_in_cat' => "There are no products in this category.",

Change the part in the double quotation marks to say what you want, for instance, "There are no additional products below. Please choose a subcategory or another category to view products."

Link to comment
Share on other sites

Guest noveltycentral

Hi,

Thanks for that, i edited my language file as was suggested and it worked out great. It did remove it form all the catagorie's which is just what i needed. Thanks again for your help.

Regards

Derren

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
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...