CharlotteCeramics Posted November 11, 2011 Share Posted November 11, 2011 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 More sharing options...
AKJV Posted November 11, 2011 Share Posted November 11, 2011 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 More sharing options...
CharlotteCeramics Posted November 14, 2011 Author Share Posted November 14, 2011 Thank you very much for your help. That worked Link to comment Share on other sites More sharing options...
raza Posted June 4, 2012 Share Posted June 4, 2012 Hi, I have a problem here that my all subcategories products displays into parent category and i want to remove it. please help ASAP. I will be yery thankful to you. Link to comment Share on other sites More sharing options...
Recommended Posts