Removing the 'There are no products in this category' message
Overview
When there are no products in a category, a message appears on the category page:
There are no products in this category.
The message does not always apply if the category descriptions mod has been installed, or there are subcategories within that category.
Therefore to remove this message there are two ways of doing it, removal in the language file, or removal in the skin.
Removal from the skin.
Removal from the skin automatically affects all languages the store uses.
Edit:
/skins/SKIN_NAME/styleTemplates/content/viewCat.tpl
Find near the bottom:
<!-- BEGIN: noProducts -->
<div>{TXT_NO_PRODUCTS}</div>
<!-- END: noProducts -->
Remove, or comment out the following:
<div>{TXT_NO_PRODUCTS}</div>
Save and Upload.
Removal from the language file.
Removal from the language file only affects the language it is removed from.
Edit:
/language/LANG_CODE/lang.inc.php
Find this line, around line 1984:
'no_prods_in_cat' => "There are no products in this category.",
Remove the comment within the quotes, as shown below:
'no_prods_in_cat' => "",
Save and Upload.
|