jmx Posted July 28, 2012 Share Posted July 28, 2012 (edited) 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 July 28, 2012 by Julien Mayeux (see edit history) Link to comment Share on other sites More sharing options...
jmx Posted July 28, 2012 Author Share Posted July 28, 2012 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 More sharing options...
jmx Posted July 28, 2012 Author Share Posted July 28, 2012 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 More sharing options...
jmx Posted July 28, 2012 Author Share Posted July 28, 2012 (edited) 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 July 28, 2012 by Julien Mayeux (see edit history) Link to comment Share on other sites More sharing options...
jmx Posted July 28, 2012 Author Share Posted July 28, 2012 (edited) 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 July 28, 2012 by Julien Mayeux (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now