Jump to content

[SOLVED]How to remove the "Theres no product in this category" and sub category thumb in center page


Recommended Posts

I want to remove the "There's no product in this category" label inside the sub category, because it is very obvious to mislead visitor to think that there's really nothing there, and below grandchild sub category option is just a advertising.

 

And also i want to remove the sub categori thumbnail, ONLY in grandchild subcategory page, because i dont want visitor to think there's only 1 product in those category.

 

the sample link is : http://www.f22aero.com/presta/index.php?id_category=35&controller=category&id_lang=3

 

Below is a picture showing what i want to delete.

 

post-735083-0-26837400-1386734218_thumb.gif

 

i'm using v1.5.6

 

Thank you for helping

Link to comment
Share on other sites

in category-count.tpl file is:

{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}

remove this code:

{l s='There are no products in  this category'}
  • Like 1
Link to comment
Share on other sites

sry, i thought that you're talking about text only.

code for image is here:

 

category.tpl

{if $scenes}
				<!-- Scenes -->
				{include file="$tpl_dir./scenes.tpl" scenes=$scenes}
			{else}
				<!-- Category image -->
				{if $category->id_image}
				<div class="align_center">
					<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html'}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" />
				</div>
				{/if}
			{/if}

just remove it

Link to comment
Share on other sites

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...