Billy Posted May 3, 2015 Share Posted May 3, 2015 (edited) I would like to display thumbnails on all my main category pages. All the thumbnails sould link to my sub_categories then my sub_categories ect... This is a very intutive way for people to drill down on these websites. https://www.greatplainselectronics.com/categories.asp?cat=35 This website link above explains exactly what I want to do. See how nice they are? This isn't new is it? I have looked thru the whole darn site and I can't find a way to do this. So how is the feature pulled off in prestashop 1.6.0.14 ? Thanks in advance Billy Edited May 3, 2015 by Billy (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted May 3, 2015 Share Posted May 3, 2015 Displaying subcategories should be enabled by default. See if module theme configurator is installed and in settings see if maybe in its options, Display subcategories is enabled. If you have custom theme check if category.tpl have this code {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) } <!-- Subcategories --> <div id="subcategories"> <p class="subcategory-heading">{l s='Subcategories'}</p> <ul class="clearfix"> {foreach from=$subcategories item=subcategory} <li> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} {/if} Link to comment Share on other sites More sharing options...
Billy Posted May 3, 2015 Author Share Posted May 3, 2015 That bit of code seemed to help alot. However its pulling the banner image and not the thumbnail image. Thank you I am one step closer. 1 Link to comment Share on other sites More sharing options...
Billy Posted May 3, 2015 Author Share Posted May 3, 2015 I think I found the solution. I will run down this road and see if it solves my issues. http://nemops.com/prestashop-categories-second-image/#.VUardpMYE4A Unless anyone else might have a better solution. I just dont understand why the thumbnails don't work. You can see them and the banner when you edit you categories. Both images are there in admin. What the heck... 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