TDi Posted December 4, 2017 Share Posted December 4, 2017 (edited) AAAAARRRRRGGGGGHHHHH!!!! Why isn't it possible to define custom image sizes for categories and products - it makes PrestaShop seem so arcane and dated that there is no flexibility in how image sizes work! So frustrating - just inherently limits the creativity you can have with design and layout!!! So drab and uniform. So not I have to re-design the style and layout because I can only have ONE (!!!!) predefined Category Image size. Sooooo lame.... Edited December 4, 2017 by TDi image example (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted December 4, 2017 Share Posted December 4, 2017 Of course you can define different sizing as standard. If you go bigger than the standard, than you should also change on your theme. For to change sizing you go to tab "Preferences -> images" (PS 1.6), "Design -> image setting " (PS 1.7.) There you can also define own sizing and add it to your theme on code as well, if you dont want to use the standard sizing in general (default). Simply add new classes and than add them to your theme code. Link to comment Share on other sites More sharing options...
TDi Posted December 4, 2017 Author Share Posted December 4, 2017 Are you size - I can only get PrestaShop to see one size of image for Category Images - not multiple sizes likei want to have Link to comment Share on other sites More sharing options...
TDi Posted December 4, 2017 Author Share Posted December 4, 2017 So I can create multiple user-defined image sizes, and use them for category images? I just need to add new classes to the theme code. Is that what you're saying? Link to comment Share on other sites More sharing options...
razaro Posted December 4, 2017 Share Posted December 4, 2017 Nice looking layout Would be nice to see that finished. If you are editing theme you could try maybe with original category image you uploaded. For example in category.tpl in PrestaShop 1.6 instead {$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'} try {$link->getCatImageLink($category->link_rewrite, $category->id_image, '')|escape:'html':'UTF-8'} so no specific image type specified. Link to comment Share on other sites More sharing options...
TDi Posted December 4, 2017 Author Share Posted December 4, 2017 Thanks mate - would be great to get it to work! ill try that, but would it be the same for 1.7? Link to comment Share on other sites More sharing options...
selectshop.at Posted December 4, 2017 Share Posted December 4, 2017 Themes made with smarty for PS 1.6. will not work on PS 1.7. It is another framework. You will need to adapt. But the logic is the same. You have default class and than you can add your own class. Link to comment Share on other sites More sharing options...
TDi Posted December 4, 2017 Author Share Posted December 4, 2017 1 minute ago, selectshop.at said: Themes made with smarty for PS 1.6. will not work on PS 1.7. It is another framework. You will need to adapt. But the logic is the same. You have default class and than you can add your own class. I'm using a paid theme called Leo_cool. I've actually asked the developer to modify it to reflect the design I want - but they seem adamant that multiple category image sizes in prestashop is not possible. They want me to standardise the images for the categories - which kinda messes up the design design and layout. It didnt occur to me to check if prestashop had any image size restrictions- I just assumed you could define your own when you wanted to create or customise a theme. Link to comment Share on other sites More sharing options...
razaro Posted December 4, 2017 Share Posted December 4, 2017 Unfortunately in 1.7 is different and to not have that. But 1.7 have other options. Like selectshop.at said you can have different types of category image, with different dimensions. You could use different templates for different categories http://developers.prestashop.com/themes/templates/010-templates-layouts.html#specific-templates so one category.tpl can use image size that is most used and categories that use taller images for example can use specific templates that would use other category image type. If you do not have too many different layouts could be possible maybe. Link to comment Share on other sites More sharing options...
TDi Posted December 4, 2017 Author Share Posted December 4, 2017 3 minutes ago, razaro said: Unfortunately in 1.7 is different and to not have that. But 1.7 have other options. Like selectshop.at said you can have different types of category image, with different dimensions. You could use different templates for different categories http://developers.prestashop.com/themes/templates/010-templates-layouts.html#specific-templates so one category.tpl can use image size that is most used and categories that use taller images for example can use specific templates that would use other category image type. If you do not have too many different layouts could be possible maybe. Thanks! Will give that a try 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