Jump to content

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)

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

I'm using force compil and cache is disabled, I always double check the compile folder in the smarty folders are empty with index.php, still

Edited by Julien Mayeux (see edit history)

Share this post


Link to post
Share on other sites

So I found the problem is some javascript going on with id="bigpic" within the img tag ; I was thinking learning the Prestashop certificate, do you provide some documentation while passing it ?

Edited by Julien Mayeux (see edit history)

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More