CubeCartForums.org Documentation Area

CubeCartForums.org for CubeCart third-party documentation, modifications, skins and services
Permanent Link   Print This Page
Introduction CubeCart v3 CubeCart v4 CubeCart v5 Appendix Search

CubeCart Version 4 Documentation - Removing the 'There are no products in this category' message

Google Translate:

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 system only affects the language it is removed from.

In Admin, find the Language menu option, select the language.

Select the 'Front End Phrases', then 'Content', then 'View Products/Subcategories Page'.

Remove the text 'There are no products in this category.'.

Select 'Modify Language File'.



Comments, Feedback, Suggestions and Documentation Submissions please post in the Documentation Chat Forum.