Lo S L Posted March 6, 2014 Share Posted March 6, 2014 Hi, I have a site is having teething problem for months being unable to display product image on individual product page. Please view one of the page at http://goo.gl/BvbcMr. I have tried many methods as stated in this forum but not effective at all. It is Prestashop version 1.5.0.17 and using a template purchased from templatemonster.com. Their support team had already helped to check for about 3 weeks, even tested with the default theme inside the Prestashop, the product image is still not able to display on individual product page. But no issue on the category page to display the product image. Please help me to take a look and suggest possible solution for this problem. Thank you in advance. Link to comment Share on other sites More sharing options...
indus Posted March 6, 2014 Share Posted March 6, 2014 Did you check in your images section in backoffice for the image type default-large? Link to comment Share on other sites More sharing options...
berka.pavel Posted March 6, 2014 Share Posted March 6, 2014 (edited) There is totaly different type of image path. In category (product-list.tpl) you have <img src="http://www.smartsolutions.com.sg/c/7-category/point-to-point-video-extenders.jpg" alt=""> and in product.tpl you have <img src="http://www.smartsolutions.com.sg/img/p/en-default-large.jpg" alt="" id="bigpic" title="XTPRO"> I will copy the line of code from product-list.tpl to product.tpl which showing the image... it should be something like this <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html'}" id="obr-{$product.id_product}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /> this code is from 1.5.6... Edited March 6, 2014 by berka.pavel (see edit history) 1 Link to comment Share on other sites More sharing options...
Lo S L Posted March 7, 2014 Author Share Posted March 7, 2014 The product images are displaying in BO and FO category pages, except individual product page in FO.... Link to comment Share on other sites More sharing options...
Lo S L Posted March 7, 2014 Author Share Posted March 7, 2014 Hi berka.pavel, Thank you for your assistance and attention. In fact, it was showing "No image available" at the product page before I created large_default type under Preference - Images. Now it is an improved display. Do you suggest me to amend the product.tpl inside the template currently being used with your suggested code? I am not good in php coding, it is really kind of you to have looked into my issue and came back to me the detailed. I am really grateful to you. Thank you. Link to comment Share on other sites More sharing options...
dioniz Posted March 8, 2014 Share Posted March 8, 2014 Try to open product.tpl in default templates folder and your templates folder. Check the line starting with <img src= ... (see above post from berka pavel). Copy line from default template to your template and it will probably fix it. 1 Link to comment Share on other sites More sharing options...
Lo S L Posted March 20, 2014 Author Share Posted March 20, 2014 Hi all, thank you for your guidance, I have been busy dashing in & out of clinics and hospital to attend to my [spam-filter] and daughter the past 2 weeks, and I almost forgotten about this. I shall give it a try and post an update later. Appreciate your help. Link to comment Share on other sites More sharing options...
Lo S L Posted March 20, 2014 Author Share Posted March 20, 2014 Hi, I have edited product.tpl from the template folder. Original: <img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" id="bigpic" /> Replaced with: <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html'}" id="obr-{$product.id_product}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /> Now, the product image is still not displayed, as seen from http://goo.gl/BvbcMr. What went wrong from my end?? Could any Prestashop lovers guide me on this? Thank you in advance. Link to comment Share on other sites More sharing options...
dioniz Posted March 20, 2014 Share Posted March 20, 2014 Try to clear cache and recompile Link to comment Share on other sites More sharing options...
Recommended Posts