sscardefield Posted March 31, 2013 Share Posted March 31, 2013 PrestaShop 1.5.3 I am trying to remove or change the "There are no products." that shows up at the top of empty categories. First I manually edited category_count.tpl and changed "There are no products." to "Please select a category below." as you can see here: {if $category->id == 1 OR $nb_products == 0} {l s='Please select a category below.'} {else} {if $nb_products == 1} {l s='There is %d product.' sprintf=$nb_products} {else} {l s='There are %d products.' sprintf=$nb_products} {/if} {/if} That made no difference, Next I went into the Translations in the BO for my current theme/language to change it there (after figuring out how to fix the pesky php max_input_vars error). As you can see below, the translation is already set to "Please select a category below." so it obviously just pulls that translation from the category_count.tpl. I have tried changing this with Smarty Force Compilation on and off (not sure if that even makes a difference). I have spent hours reading through posts and have gotten no where. Everybody says just edit the translation. Well as you can see the translation is already set and it still doesn't work. Anybody got any ideas? 1 Link to comment Share on other sites More sharing options...
Paulito Posted March 31, 2013 Share Posted March 31, 2013 Good morning, Just type what you want to say in the pink text field and click save. I have just done this on ps 1.5.1.3 and it works, see attached Hope this helps Paul 1 Link to comment Share on other sites More sharing options...
sscardefield Posted March 31, 2013 Author Share Posted March 31, 2013 Thanks for the reply. I tried that as well with the same result, no change. Sorry, I should have included that in my original post as well. Link to comment Share on other sites More sharing options...
Paulito Posted March 31, 2013 Share Posted March 31, 2013 As I have just said on your other post, you have tried force compile etc Paul Link to comment Share on other sites More sharing options...
sscardefield Posted March 31, 2013 Author Share Posted March 31, 2013 Yes, I have tried with Force compilation on and off. Link to comment Share on other sites More sharing options...
sscardefield Posted April 1, 2013 Author Share Posted April 1, 2013 I feel embarrased reporting this, but I was in the wrong theme. I have like 10 themes loaded, all with weird random generated names from the theme creator I used for my site, so I had gotten confused on which one was currently loaded. Link to comment Share on other sites More sharing options...
vekia Posted April 1, 2013 Share Posted April 1, 2013 hehe it's common problem, you should always edit overrides in themes/your_theme/ directory :-) i marked this topic as solved, thanks dude for info that now it is ok! 2 Link to comment Share on other sites More sharing options...
beethika Posted October 28, 2015 Share Posted October 28, 2015 I have changed the link of my sub category to a new main category in top menu,now the sub category have a lot of products but when i open my main category the message "There are no products " displayed .. while others existing main category displays the count of their sub category products. please resolve .... Link to comment Share on other sites More sharing options...
Catalin Nistor Posted February 23, 2016 Share Posted February 23, 2016 To remove "There are no products" in Prestashop 1.6.1.4 edit global.css file from default-bootstrap .page-heading span.heading-counter {display:none;} Link to comment Share on other sites More sharing options...
edoluz Posted March 20, 2018 Share Posted March 20, 2018 On 23/2/2016 at 1:55 PM, studionic said: To remove "There are no products" in Prestashop 1.6.1.4 edit global.css file from default-bootstrap .page-heading span.heading-counter {display:none;} Thank you. I'm wondering why PS just doesn't add this simple feautre in Back Office... best if configurable for any different category... Link to comment Share on other sites More sharing options...
jetx Posted February 8, 2022 Share Posted February 8, 2022 for 1.7.8 is there a setting somewhere in BO? I'd have thought it was pretty common to only use sub cats for products, though I might be wrong. Anyway I used .page-not-found {display:none;} which does the trick. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now