Jump to content

Multiple Category Image Sizes


TDi

Recommended Posts

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....

04p.jpg

05p.jpg

Edited by TDi
image example (see edit history)
Link to comment
Share on other sites

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

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...