Sly Crespo Posted May 3, 2010 Share Posted May 3, 2010 I want to remove those "no image available" pictures from my subcategories. How do I do that ? Link to comment Share on other sites More sharing options...
shacker Posted May 3, 2010 Share Posted May 3, 2010 I want to remove those "no image available" pictures from my subcategories. How do I do that ? hi. open categories.tpl in your theme folder, and delete this section to remove subcategories images: {l s='Subcategories'} {foreach from=$subcategories item=subcategory} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> {if $subcategory.id_image}getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" /> {else} {/if} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'} {/foreach} If you want to only remove image, but keep titles, only remove the image tag 3 Link to comment Share on other sites More sharing options...
Sly Crespo Posted May 3, 2010 Author Share Posted May 3, 2010 Thanks for your help... It works.. Link to comment Share on other sites More sharing options...
shacker Posted May 4, 2010 Share Posted May 4, 2010 Thanks for your help... It works.. your welcome. Please put SOLVED in title Link to comment Share on other sites More sharing options...
joope Posted July 27, 2010 Share Posted July 27, 2010 I have been looking for this... Thanks...I will try it... Link to comment Share on other sites More sharing options...
shacker Posted July 28, 2010 Share Posted July 28, 2010 I have been looking for this... Thanks...I will try it... if work post SOLVED in the title Link to comment Share on other sites More sharing options...
uyuco9 Posted August 5, 2010 Share Posted August 5, 2010 Thank you! Very helpful! Link to comment Share on other sites More sharing options...
johnme Posted September 6, 2010 Share Posted September 6, 2010 Can any one Tell me How to remove For Select sub Categories Not For all categories Hope some one Will help me Link to comment Share on other sites More sharing options...
shacker Posted September 12, 2010 Share Posted September 12, 2010 Can any one Tell me How to remove For Select sub Categories Not For all categories Hope some one Will help me try with the the included in this post, remove the subcategories from thecategorie that you are in. Link to comment Share on other sites More sharing options...
johnme Posted September 13, 2010 Share Posted September 13, 2010 Can any one Tell me How to remove For Select sub Categories Not For all categories Hope some one Will help me try with the the included in this post, remove the subcategories from thecategorie that you are in. Hi Thanks for reply I mean Main categories Image Size was 720*130 Sub Caregories Size was :- 350*150Now i want To Change The Size for SUB Sub Cagories for Example 75*75 I willing to know how to adjust Some Few categories images Size Link to comment Share on other sites More sharing options...
shacker Posted September 16, 2010 Share Posted September 16, 2010 Can any one Tell me How to remove For Select sub Categories Not For all categories Hope some one Will help me try with the the included in this post, remove the subcategories from thecategorie that you are in. Hi Thanks for reply I mean Main categories Image Size was 720*130 Sub Caregories Size was :- 350*150Now i want To Change The Size for SUB Sub Cagories for Example 75*75 I willing to know how to adjust Some Few categories images Size hi. for sub sub categories prestashop dont have this option to change the image size. Link to comment Share on other sites More sharing options...
johnme Posted September 18, 2010 Share Posted September 18, 2010 Is there any Other option .. OR any other Module Can any one Tell me How to remove For Select sub Categories Not For all categories Hope some one Will help me try with the the included in this post, remove the subcategories from thecategorie that you are in. Hi Thanks for reply I mean Main categories Image Size was 720*130 Sub Caregories Size was :- 350*150Now i want To Change The Size for SUB Sub Cagories for Example 75*75 I willing to know how to adjust Some Few categories images Size hi. for sub sub categories prestashop dont have this option to change the image size. Link to comment Share on other sites More sharing options...
cyrusvsdarius Posted October 2, 2010 Share Posted October 2, 2010 Hi, I would like to keep the sub titles but remove the images, but I dont know exactly what to remove. Can you please mark what I should remove from Category.tpl.Thank you in advance Link to comment Share on other sites More sharing options...
bamboozled Posted October 2, 2010 Share Posted October 2, 2010 hello i am reluctant to start hacking into the code without more guidance please.re: REMOVING JUST THE IMAGE BOXES FROM THE SUBCATEGORIESI have read the reply below, which apparently works, but please can you tell me if the piece of code to remove is as follows:<!-- Category image --> {if $category->id_image}getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" /> {/if} {/if}this is the original reply to the question posted by someone else: Sly Crespo - 03 May 2010 01:20 PMI want to remove those “no image available” pictures from my subcategories. How do I do that ?hi. open categories.tpl in your theme folder, and delete this section to remove subcategories images: {l s=‘Subcategories’} {foreach from=$subcategories item=subcategory} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:‘htmlall’:‘UTF-8’}” title=”{$subcategory.name|escape:‘htmlall’:‘UTF-8’}”> {if $subcategory.id_image} getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, ‘medium’)}” alt=”“ > {else} {$img_cat_dir}default-medium.jpg {/if} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:‘htmlall’:‘UTF-8’}”>{$subcategory.name|escape:‘htmlall’:‘UTF-8’} {/foreach} If you want to only remove image, but keep titles, only remove the image tag Signature http://www.catalogo-onlinersi.com.ar - Diseño web - Export Prestashop PDF - Facebook Link to comment Share on other sites More sharing options...
johnme Posted October 2, 2010 Share Posted October 2, 2010 hello i am reluctant to start hacking into the code without more guidance please.http://www.catalogo-onlinersi.com.ar - Diseño web - Export Prestashop PDF - Facebook Hi Frined still i am looking For This solution Main categories Image Size was 720*130Sub Caregories Size was :- 350*150Now i want To Change The Size for SUB Sub Cagories for Example 75*75I willing to know how to adjust Some Few categories images SizeRegardsRam Link to comment Share on other sites More sharing options...
kerryzhao Posted December 1, 2010 Share Posted December 1, 2010 God, why it doesn't work for me. Link to comment Share on other sites More sharing options...
shacker Posted December 1, 2010 Share Posted December 1, 2010 copy the code that you have here, and remember to delete files in tools/smarty/compile (all but no index.php) Link to comment Share on other sites More sharing options...
kerryzhao Posted December 1, 2010 Share Posted December 1, 2010 Thanks, it works.Thank you very much. Link to comment Share on other sites More sharing options...
ArkantoS Posted June 27, 2011 Share Posted June 27, 2011 trying for a while now, but still without succes...basically, the idea that I want is a two-column list with my subcategories, so without the images of a category.For some reason, it never wants to remove the images however...Here's what my code of category.tpl looks like: {if isset($subcategories)} <!-- Subcategories --> {l s='Subcategories'} {foreach from=$subcategories item=subcategory} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'} {/foreach} {/if} And this is category.css: /* category.tpl */ body#category #subcategories li { width: 240px; margin-left: 40px; text-align: left; font-size: 10px; text-decoration: none; } div.cat_desc { margin-bottom: 0px; } body#category div#subcategories .inline_list a { text-decoration: none; } Any help would be welcome!I'm using PS 1.4 btw. Link to comment Share on other sites More sharing options...
ArkantoS Posted June 28, 2011 Share Posted June 28, 2011 I'm still trying a lot of things out, but it doensn't really matter if I do change anything in category.tpl... it never changes something anyway... maybe there's something wrong here? or do I have to alter some things somewhere else as well? Link to comment Share on other sites More sharing options...
Recommended Posts