hurray Posted June 21, 2010 Share Posted June 21, 2010 Hi, I am new to prestashop and need some help. I uploaded a 750x500 pxl image of one of my products. But when I click on it to enlarge, it does not open in its original size. How and where do I need to make changes to open a product's image on its original size when clicked on enlarge image.Thanks. Link to comment Share on other sites More sharing options...
SpyrosT Posted June 22, 2010 Share Posted June 22, 2010 You will have to edit the thickbox size.BO> Preferences> Image Link to comment Share on other sites More sharing options...
hurray Posted June 22, 2010 Author Share Posted June 22, 2010 I did that, but it only increased the size of the thickbox but not the image of the product. The image is now slightly bigger than before but it is still not opening at its original size. Link to comment Share on other sites More sharing options...
rocky Posted June 22, 2010 Share Posted June 22, 2010 To have the original uploaded image display in thickbox instead of resized thickbox images, change line 118 (in PrestaShop v1.3.1) of prdouct.tpl in your theme's directory from: <a href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}"> to: <a href="{$link->getImageLink($product->link_rewrite, $imageIds)}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}"> and line 277 (in PrestaShop v1.3.1) of js/product.js in your theme's directory from: var newSrc = domAAroundImgThumb.attr('href').replace('thickbox','large'); to: var newSrc = domAAroundImgThumb.attr('href').replace('.jpg','-large.jpg'); Link to comment Share on other sites More sharing options...
hurray Posted June 23, 2010 Author Share Posted June 23, 2010 Hi Rocky,The code that I found on my product.tpl at line 118 is something like this getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="{if !$jqZoomEnabled}thickbox{/if} {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">It is slightly different that what you have put above.What do I need to change in this code?Thanks. Link to comment Share on other sites More sharing options...
rocky Posted June 23, 2010 Share Posted June 23, 2010 Just remove the 'thickbox' parameter (including the comma before it). Link to comment Share on other sites More sharing options...
hurray Posted June 23, 2010 Author Share Posted June 23, 2010 Thanks Rocky.You're awesome. It completely solved my issue.I am still new to Prestashop so I will be posting some issues I am having. So please be patient with me Thanks again a lot. Link to comment Share on other sites More sharing options...
istox Posted December 2, 2010 Share Posted December 2, 2010 Hello! It's helped for me too. But one problem! Watermark! Link to comment Share on other sites More sharing options...
saint Posted February 19, 2011 Share Posted February 19, 2011 I've tried this method and it's not working for me. I have just installed 1.3.7I'm wondering if I should just code it as to clicking on the smaller size opens a new tab with the full pic watermarked. Link to comment Share on other sites More sharing options...
babyewok Posted March 16, 2011 Share Posted March 16, 2011 Rocky, I wonder if you can help. I have followed the suggestions in this module to crop my images to a nice square: http://www.prestashop.com/forums/viewthread/15210/installing_prestashop/trick__crop_images_inside_preserve_ratio_no_white_spaces_arround_imageThis works just fine. However, I wouldlike to show the image at it's original dimensions (i.e. not cropped) for the thickbox. If I leave it unchanged, the thinckbox image also gets cropped to a square, so I followed your instructions here to show the original image in the thickbox.HOWEVER, although the cover image for the product loks fine and so do the thicknox images, when I rollover a thumbnail, the bigpic is changed to an images that is sqaushed into the square, rather than cropped. From looking at Firebug, I can see that while the source for the cover image big pic is: src="/10-106-large/product1.jpg the image source for big pic when I roll over the thumb i s: src="/10-106/product1-large.jpg What do I need to change to get this working so that when the bigpic is changed it is at the same proportions as the cover pic? Link to comment Share on other sites More sharing options...
babyewok Posted March 18, 2011 Share Posted March 18, 2011 no ideas? How can I set it to add the -large after the '10-106' or whatever it is? Link to comment Share on other sites More sharing options...
babyewok Posted March 19, 2011 Share Posted March 19, 2011 Hmm, just thinking about this - is there a way that we can append -original to the original image when it is uploaded then this could be changed to var newSrc = domAAroundImgThumb.attr('href').replace('original','large'); That could work??? Link to comment Share on other sites More sharing options...
babyewok Posted March 19, 2011 Share Posted March 19, 2011 Or maybe create a copy of the original and append -original ???? Link to comment Share on other sites More sharing options...
outlet.ee Posted June 4, 2011 Share Posted June 4, 2011 Rocky,how to enable the full size on PS1.4? I followed the steps and changed the .tpl and .js files. Now it loads the image in full size but scales it down again in the fancyfox. i.e. the image is in full size but the surrounding fancybox isn't. Must be something in fancybox css /js? Link to comment Share on other sites More sharing options...
Luca S. Posted June 7, 2011 Share Posted June 7, 2011 Rocky,how to enable the full size on PS1.4? I followed the steps and changed the .tpl and .js files. Now it loads the image in full size but scales it down again in the fancyfox. i.e. the image is in full size but the surrounding fancybox isn't. Must be something in fancybox css /js? i have the same problem with 1.4.2.5... the mods was working good but with watermark there was problems ehehe... Link to comment Share on other sites More sharing options...
plauengco Posted November 11, 2011 Share Posted November 11, 2011 Also having the same problem. Has anyone been able to figure this out for 1.4+? It seems that large images no longer use the "-large.jpg" append. Link to comment Share on other sites More sharing options...
cankart Posted January 22, 2012 Share Posted January 22, 2012 hi did anyone find the solution? Link to comment Share on other sites More sharing options...
teJ20 Posted March 5, 2012 Share Posted March 5, 2012 did anyone solved this problem? I really need to enlarge images Link to comment Share on other sites More sharing options...
Aldeag Posted March 5, 2012 Share Posted March 5, 2012 I don´t know if you are looking for this: http://dapurpixel.com/blog/how-to/enlarge-jqzoom-size-in-prestashop Link to comment Share on other sites More sharing options...
yusufzulkarnain Posted July 3, 2012 Share Posted July 3, 2012 Hi, Rocky! After I click a featured product, I have missed the image featured like the screenshot attached. When I opened the image link - http://bajuditoko.com/img/p/37-78-large.jpg I found the page that 404 Not Found. Meanwhile for clicking others, I still can see images of the featured product completely. Help me! Link to comment Share on other sites More sharing options...
yusufzulkarnain Posted July 8, 2012 Share Posted July 8, 2012 To have the original uploaded image display in thickbox instead of resized thickbox images, change line 118 (in PrestaShop v1.3.1) of prdouct.tpl in your theme's directory from: <a href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}"> to: <a href="{$link->getImageLink($product->link_rewrite, $imageIds)}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}"> and line 277 (in PrestaShop v1.3.1) of js/product.js in your theme's directory from: var newSrc = domAAroundImgThumb.attr('href').replace('thickbox','large'); to: var newSrc = domAAroundImgThumb.attr('href').replace('.jpg','-large.jpg'); Hi, Rocky!About the image product, when I click any image of the fitured product at homepage, the product image is disappear, meanwhile the thickbox image is no problem. How to appear these product images? I use version 1.4.1 Link to comment Share on other sites More sharing options...
Trungvision Posted November 1, 2013 Share Posted November 1, 2013 (edited) To have the original uploaded image display in thickbox instead of resized thickbox images, change line 118 (in PrestaShop v1.3.1) of prdouct.tpl in your theme's directory from: <a href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">to: <a href="{$link->getImageLink($product->link_rewrite, $imageIds)}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">and line 277 (in PrestaShop v1.3.1) of js/product.js in your theme's directory from: var newSrc = domAAroundImgThumb.attr('href').replace('thickbox','large');to: var newSrc = domAAroundImgThumb.attr('href').replace('.jpg','-large.jpg'); the original uploaded image 1024x2000px, but image enlarge only 268x525px. how to fix? Edited November 1, 2013 by Trungvision (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts