blessmeluck Posted December 11, 2013 Share Posted December 11, 2013 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. i'm using v1.5.6 Thank you for helping Link to comment Share on other sites More sharing options...
Radu Posted December 11, 2013 Share Posted December 11, 2013 the code for category thumbnail is under /themes/default/cateogory.tpl no products thing is udner category-count.tpl Link to comment Share on other sites More sharing options...
blessmeluck Posted December 11, 2013 Author Share Posted December 11, 2013 I'm sorry but i'm not quite understand which part should i change/modify, Would you please guide me? Thanks.. Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 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'} 1 Link to comment Share on other sites More sharing options...
blessmeluck Posted December 11, 2013 Author Share Posted December 11, 2013 thanks vekia, that's work.. However, the category icon as shown on my image above hasn't disappear. Is it need another modification? Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 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 More sharing options...
blessmeluck Posted December 11, 2013 Author Share Posted December 11, 2013 Thanks again vekia, dont know how many times i need to thank you Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 you're welcome i marked this topic as [solved] with regards, Milos 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