Jump to content

How to Change Image Size of SUBcategories ?


Recommended Posts

Greetings,

 

How do I change the image size of the subcategories from the medium (80px × 80px) to something larger and easier to view? Here is what I have tried so far, based on information that I found at other posts on this forum:

  • I created a new picture type called "SubCat" under preferences>Images
  • I Regenerated thumbnails
  • I went to my server and changed the category.tpl file, wherever there was an entry that said 'medium' in association to 'Subcategories,' I changed the value to 'SubCat.'

Nothing changed. I even cleared my browser caches and tried on IE, Firefox, and Google Chrome.

 

Still- Nothing changed (so I changed everything back to the original values)

 

Here is the example of the problem: http://www.carriedaw.../5-bath-fizzies

 

Can someone please help me?

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...

I'm thinking you didn't change Preferences/Performance to Force Compile - Yes, Cache - No, reload a page and then change it back. You have to do that every time you change a .tpl file. Your procedures are identical to what I did on my site; worked fine after the site compiled. You'll also have to change the new image size in category.css.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

I think you didn't change the variables that begins with $, just after the size 'name'. Examle:

 

<a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /></a>

 

Change $homeSize to $SubCatSize and would see it works.

Edited by otexito (see edit history)
Link to comment
Share on other sites

Update: My solution was to start using the NEW default template for prestashop (available HERE). It would seem that the problem has been addressed (fixed) in the new template (which, I personally like much better than the old template) ... thanks developers :rolleyes:

 

Hope this helps others,

Tony

Edited by CarriedAwayCrafts (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...