Jump to content

[HELP] Changing image size on Products Category module


Recommended Posts

Hi there,

 

I need help in changing the picture size of Products Category module. By default, it uses medium_default size. When I changed it to large_default size, some of the last item on the list doesn't appear somehow but it is there when you inspect it (please see attachment). The changes I made to code were:

 

Change the width on the math equation, from 107 originally to 232

<ul {if count($categoryProducts) > 1}style="width: {math equation="width * nbImages" width=232 nbImages=$categoryProducts|@count}px"{/if}>

Change the image size from medium_default originally to large_default

<img src="{$link->getImageLink($categoryProduct.link_rewrite, $categoryProduct.id_image, 'large_default')|escape:'html'}" alt="{$categoryProduct.name|htmlspecialchars}" />

Anyone can help me? Really appreciate it, I can give you the URL to the development site to see it for yourself if needed. Thanks

post-749555-0-12681700-1395716455_thumb.jpg

Edited by retories (see edit history)
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...