mickeyboy1 Posted July 21, 2015 Share Posted July 21, 2015 (edited) I am using 1.6.14 and i have added some new categories via bo but havent added images for them. In front office the default category image is not displaying in these categories. Any ideas people ??? thanks in advance mb EDIT: want to mention that when viewing a main category, then the sub-category image is displayed (I.E medium_default.jpg) but when you click on that sub-category, the main image is not showing (I.E category_default.jpg) Edited July 28, 2015 by mickeyboy1 (see edit history) Link to comment Share on other sites More sharing options...
GoFenice Posted July 21, 2015 Share Posted July 21, 2015 Do you have url to check the issue ? Link to comment Share on other sites More sharing options...
mickeyboy1 Posted July 21, 2015 Author Share Posted July 21, 2015 (edited) Thanks Prestaboys, but unfortunately it is only on localhost at the moment. But here are a couple of images to show what i mean I have tried in both 1.6.0.9 and 1.6.14 and both are the same Edited July 21, 2015 by mickeyboy1 (see edit history) Link to comment Share on other sites More sharing options...
Ostore Posted July 28, 2015 Share Posted July 28, 2015 Did you fix this mickeyboy1 ? Having the same issue Link to comment Share on other sites More sharing options...
mickeyboy1 Posted July 28, 2015 Author Share Posted July 28, 2015 Hiya Ostore, yes i did manage to get it working. in themes/YOUR_THEME/category.tpl i changed this <div class="content_scene_cat_bg"{if $category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) right center no-repeat; background-size:cover; min-height:{$categorySize.height}px;"{/if}> to this <div class="content_scene_cat_bg"{if $category->id_image || !$category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) right center no-repeat; background-size:cover; min-height:{$categorySize.height}px;"{/if}> This is just saying " If category has an image assigned OR If category hasnt an image assigned" then ....... Maybe not the best way but it works for me 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