Ricky Blunda Posted January 6, 2016 Share Posted January 6, 2016 (edited) Hello good community member! I could clearly use your help here! In a bid to remove CATEGORY IMAGES, I seem to have accidently removed the sub-category images entirely (i.e. they dont display anymore). In my attempt to remove CATEGORY IMAGES, I edited the file Themes\Default bootstrap\category.tpl where I commented out this part: ------------------------------------------------------------------ <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="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="{$subcategory.name|escape:'html':'UTF-8'}" 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} --------------------------------------------------------------- As that obviously cleared my subcategory (see attached file image!), I reinstalled the above part, but the damage was already done! My sub-category images/links are gone. I even tried to replace the category.tpl file with a backup version, but it doesnt undo the damage. So I beg of you...help?! NOTE: I saved a full backup of all files prior to making any of these changes. Are there any other files I should restore to remedy the situation? Edited January 6, 2016 by Ricky Blunda (see edit history) Link to comment Share on other sites More sharing options...
Ricky Blunda Posted January 6, 2016 Author Share Posted January 6, 2016 SOLVED! I solved this issue by disabling and then re-enabling the cache in the backoffice GUI. Thanks though! 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