Jump to content

product.tpl default image name


Recommended Posts

Hi, I'm actually modifying a theme, so first is the image name in the product.tpl.

 

Instead of using the "large" image I need to use a custom image name listed in the image preferences. Sounds basic right.

 

So in the product.tpl line 150 (default prestashop theme) changing this line :

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}"

 

to this :

 

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'produit_liste')}"

 

it still loads the large image

 

I tried all the image name I have in my list ("small", "medium" or custom image definition like "produit_liste" etc...), to double check I was editing the right file, removing width and height tags I can see the the changes but the "large" image is still loading instead of "small", "medium" or custom image definition like "produit_liste"

 

Where is the default setting , I can't find it.

 

I've seen many posts saying regenerate images, well this is not an option has I have too many pictures to resize.

 

Could please point me in the right direction as have no more clues how to fix this basic customazation ?

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

The modification actually works with a fresh install of prestashop, I suspect the upgrade process from PS 1.3 where it was working before, I'll check this fault into more details I think upgrading is really not a good option

Link to comment
Share on other sites

Just in case you have an idea, I'm using the prestashop default theme from fresh upload still no chance, editing the product.tpl works fine like removing width and height tags of the product image but changing large to small does not work at all

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