Jump to content

Product image is not showing on comment box


Recommended Posts

Product image not showing in the comment box. Below is the code as specified in productcomment.tpl

 

<img src="{$productcomment_cover_image}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$product->name|escape:'html':'UTF-8'}" />

 

 

Here I have attached the screenshots.

post-1007319-0-82751500-1436780267_thumb.jpg

Link to comment
Share on other sites

Changed the image src

 

from 

 

<img src="{$productcomment_cover_image}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$product->name|escape:'html':'UTF-8'}" />

 

To

 

<img src="{$link->getImageLink($product->link_rewrite, $productcomment_cover, 'home_default')|escape:'html'}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$product->name|escape:'html':'UTF-8'}" />

 

The product image was rendered. Though this could help someone in future. Happy customising prestashop ;)

  • Like 1
Link to comment
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...