hamster88 Posted October 6, 2013 Share Posted October 6, 2013 (edited) If i upload an image for a category it shows the image for the sub category (58x58) in the parent category. It also shows the same image for that sub category heading. How do i get it to show 2 different images. Edited October 7, 2013 by hamster88 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 7, 2013 Share Posted October 7, 2013 Hi! This is not possible by default. However, You can achieve it if you do some custom modifications at the core. This highly depends on your prestashop version, can you tell us which one you are using? Link to comment Share on other sites More sharing options...
hamster88 Posted October 7, 2013 Author Share Posted October 7, 2013 (edited) hi im using 1.5.5.0. Is there any module that can do it ? will you be able to help me with this ? also how do i change the size of the thumbnail of subcategories ? thanks Edited October 7, 2013 by hamster88 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 7, 2013 Share Posted October 7, 2013 I am not aware of any module, but other people might know Are you a coder? I can give you some hints if you are, but it's a rather broad modification to be convered in a forum topic! To change the size of subcategories' thumbs, you can go 2 ways: 1- go to images -> preferences and change the medium size. Of course, this will affect all other images of that size 2- more complex! You can create a new image type, say, subcategories. Then locate category.tpl in your theme's folder, and edit the subcategories images, from, say <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> to <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'subcategories')|escape:'html'}" /> Link to comment Share on other sites More sharing options...
hamster88 Posted October 7, 2013 Author Share Posted October 7, 2013 Hi Im not much of a coder. but i tried doing that and it kept the subcategory box as 58x58 but it made the pic the size of the "new subcategory" size, and therefore resized into the 58x58 box. if you know what i mean basically the box didnt change size Link to comment Share on other sites More sharing options...
NemoPS Posted October 7, 2013 Share Posted October 7, 2013 Can you perhaps share the site url? Link to comment Share on other sites More sharing options...
hamster88 Posted October 7, 2013 Author Share Posted October 7, 2013 (edited) http://www.sophielam.co.uk Im trying to change the size of the small box. here http://www.sophielam.co.uk/index.php?id_category=6&controller=category and ideally i would like a different pic for the big picture here http://www.sophielam.co.uk/index.php?id_category=7&controller=category cos having one pic for both just doesnt work Edited October 7, 2013 by hamster88 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 7, 2013 Share Posted October 7, 2013 You must remove the embedded widthxheight in category.tpl Also, you have to regenerate thumbnails after modifying the size in the back office Link to comment Share on other sites More sharing options...
hamster88 Posted October 7, 2013 Author Share Posted October 7, 2013 (edited) i tried that still doesnt work for some reason edit it changed the size, but the word "bags" gets in the way. how do i remove that edit ok i removed the "bags", how do i center the subcategory pic ? thanks Edited October 7, 2013 by hamster88 (see edit history) 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