Kim Maarup Posted April 25, 2013 Share Posted April 25, 2013 Shop: www.ani-event.dk Shop 1.5.4 Problem: I have a main category. With no products .. instead I have..subcategories. If you have categories and does not put products, but more new subcategories in to these, as per default the shops will write in the top of the Category: "There is no products in this category. Technically this is true, but... we do have products.. they are just in a new category. However we do not want this message to be shown. Especially as Google show this phrase as a meta description when you Google the products. Can I eliminate the text? (I´m not a programmer, but can of cause do a little editing) http://ani-event.dk/...egory&id_lang=1 Best regards Kim Link to comment Share on other sites More sharing options...
tdr170 Posted April 25, 2013 Share Posted April 25, 2013 (edited) Edit the file category-count.tpl located in themes/default/ and remove the line as below: change this: {if $category->id == 1 OR $nb_products == 0} {l s='There are no products in this category'} {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} to this: {if $category->id == 1 OR $nb_products == 0} {l s=''} {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} Edited April 25, 2013 by tdr170 (see edit history) 4 Link to comment Share on other sites More sharing options...
Kim Maarup Posted April 27, 2013 Author Share Posted April 27, 2013 Hi. Thank you very much. I tried this on my "testsite" www.ani-event.com, but I get a blank catergory-page when uploading the edited file. I attached the edit-screendump. I can´t figure what I type wrong. B.r. Kim Link to comment Share on other sites More sharing options...
tdr170 Posted April 27, 2013 Share Posted April 27, 2013 I think the issue may be the marks you left for some reason yours look different '' then this. Try just copy and paste the code I posted above. 1 Link to comment Share on other sites More sharing options...
Kim Maarup Posted April 28, 2013 Author Share Posted April 28, 2013 Got it to work. I´m new to Presta. Used to work with Joomla. I changed editor to Rapid PhP, and so it worked. Thank you for clear help and instructions. Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 hello i marked this thread as [solved] and moved it to the correct forum section (you created thread in section about prestashop.com website) regards Link to comment Share on other sites More sharing options...
sounds Posted September 23, 2015 Share Posted September 23, 2015 Cool thank you 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