Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Add product image below product description
 
riandrio2309
Jr. Member
 
Total Posts:  18
Joined:  2012-05-27
 

Hi,

I would like to know how I can add the “Thumbnail” image of a product to appear a certain size below the product description? Is there a way to echo this using PHP after the product description?

I’ve tried a few things but nothing it working for me. e.g.

echo $this->helper(’catalog/image’)->init($_product, ‘thumbnail’)->resize(163, 100);

Thanks for you help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magikvishal
Sr. Member
 
Total Posts:  278
Joined:  2012-06-12
 

Hello
You will see <?php echo $this->getChildHtml('media') ?> in catalog/product/view.phtml.
It will call the media.phtml in folder view.

 
Magento Community Magento Community
Magento Community
Magento Community
 
riandrio2309
Jr. Member
 
Total Posts:  18
Joined:  2012-05-27
 

So how would I use this in the product description box to call the image?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magikvishal
Sr. Member
 
Total Posts:  278
Joined:  2012-06-12
 

Hello you can call block into description block as your design requirement

<div class="short-description">
<?php echo $this->getChildHtml('media');?>
</div>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top