maxfil Posted May 24, 2012 Share Posted May 24, 2012 (edited) Hello, prestashop community! Hopefully u'll help me with my problem. So, if i have main category, i see images and links to subcategories inside it. Then if i go into subcategory i see a large img of the subcategory. Everything is fine till now. But if i got sub subcategory, my design begin to mess up. It's hard to explain for me, since my main language is russian, so i've made a picture. So i need a subcategory large image to not appear if there is a sub subcategory. I've found by myself what part of code i need to change (in category.tpl): {if $category->id_image} <td width="164" align="middle"><div class="align_center"> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" /> </div> </td> {/if} but since im not familiar to php, i can't do it by myself... would be nice if prestashop community can help me with my problem. Maxim. Edited May 30, 2012 by maxfil (see edit history) Link to comment Share on other sites More sharing options...
maxfil Posted May 30, 2012 Author Share Posted May 30, 2012 ok, i figured that out by myself. u need to modify code as following {if $category->id_image} {if !isset($subcategories)} <td width="164" align="middle"><div class="align_center"> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" /> </div> </td> {/if} {/if} 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