Jump to content

Removing there is (x) number of products in 1.4.4.1


Recommended Posts

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

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

  • Like 2
Link to comment
Share on other sites

  • 3 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...