Jump to content

[SOLVED] "There are no products" - can this be removed?


Recommended Posts

Hello,

 

I have various different categories on my Prestashop store - 2 being parent categories with subcategories.

 

On my live store, when I click on a category with subcategories, it displays "There are no products" above the list of subcategories, as there are no products listed in the parent category, I only want products to be listed in the subcategories of this category. (Hope that makes sense!)

 

Is there a way of removing this text?

 

Many thanks in advance for any help.

Link to comment
Share on other sites

Assuming you're using prestashop 1.4.x, look in themes/your_theme/category.tpl for this:

{if $category->id == 1 OR $nb_products == 0}{l s='There are no products.'}

 

And change that into this:

{if $category->id == 1 OR $nb_products == 0}
{if !isset($subcategories)}
{l s='There are no products.'}
{/if}

 

Don't forget to enable 'Force compile' in your backoffice when making changes to TPL files.

Hope this helps.

Link to comment
Share on other sites

  • 6 months later...
×
×
  • Create New...