Kennedy5020 Posted July 2, 2013 Share Posted July 2, 2013 (edited) Hi, I need ti display product image in order details page when user click order details link. I have edited below code in order-detail.tpl but it not shows product image it shows only some dummy image <td>sfasdfsafsad <a href="{$link->getProductLink($product.product_id, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'htmlall':'UTF-8'}"> <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small_default')}" alt="{$product.name|escape:'htmlall':'UTF-8'}" {if isset($smallSize)}width="{$smallSize.width}" height="{$smallSize.height}" {/if} /></a> </td> i have attached my screenshot . Edited July 4, 2013 by karthick (see edit history) Link to comment Share on other sites More sharing options...
PrestaCoder.com Posted July 2, 2013 Share Posted July 2, 2013 You are sure you have uploaded an image for that product? If yes, to solve this problem, you will need to regenerate the images on Prestashop admin area. Link to comment Share on other sites More sharing options...
Kennedy5020 Posted July 2, 2013 Author Share Posted July 2, 2013 (edited) You are sure you have uploaded an image for that product? If yes, to solve this problem, you will need to regenerate the images on Prestashop admin area. For all order detail same issue occur. I think my code have error . I am using below code for display image but not showing image any error in below code ? <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small_default')}" > Edited July 2, 2013 by karthick (see edit history) Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted March 19, 2015 Share Posted March 19, 2015 i know the problem now, public function getImageLink($name, $ids, $type = null) $name can be set to any strings but $product.link_rewrite is NULL,so the image won't display, for example, /423-small_default/europe-design-restaurants-coffee-bar-waiter-waitress-uniform-shirt-apron.jpg /423-small_default/anysting.jpg will get the same image Link to comment Share on other sites More sharing options...
carrelmarillon Posted December 5, 2015 Share Posted December 5, 2015 hello can you tell me how you fixed it please ? Link to comment Share on other sites More sharing options...
Recommended Posts