Driven2a Posted November 8, 2011 Share Posted November 8, 2011 I have noticed there are threads about removing the text in categories such as 'there is xxx number of products' or 'there are no products' which actually worked on an older version of prestashop, however since upgrading this no longer works. I have tried the translation method but it doesn't solve the problem of the public knowing how many products there are in total within the category. I would just like to remove this text altogether as I find it completely and utterly pointless. Could anyone provide the correct way of removing this text, I have tried all other suggestions about changing code in the category.tpl file in the theme folder, however these are for older versions of prestashop which haven't worked on my version 1.4.4.1. I have forced compile and also used the clear cache module after making code changes also. Many Thanks, Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted November 8, 2011 Share Posted November 8, 2011 Comment out the following lines in your category.tpl file. <h1>{strip} {$category->name|escape:'htmlall':'UTF-8'} <span> {if $category->id == 1 OR $nb_products == 0}{l s='There are no products.'} {else} {if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if} {$nb_products} {if $nb_products == 1}{l s='product.'}{else}{l s='products.'}{/if} {/if} </span>{/strip} </h1> I guarantee this will work! Marty Shue 2 Link to comment Share on other sites More sharing options...
DisturbedGoW Posted February 29, 2012 Share Posted February 29, 2012 I have tried to comment it out various ways, using: <!-- --> {* *} {* * * *} None has worked for me yet... Can you give me a hint what I am doing wrong? Best regards, Dist Link to comment Share on other sites More sharing options...
DisturbedGoW Posted March 1, 2012 Share Posted March 1, 2012 Alright the solution did work, just took a while for the server to notice the upload, sorry! And thanks for the solution! 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