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

HOW TO CALL upsell_products FROM 2columns-right.phtml (You May also be interested in…)
 
mag2008
Jr. Member
 
Total Posts:  9
Joined:  2008-07-21
 

I want to call <?php echo $this->getChildHtml('upsell_products') ?>
from /app/design/frontend/default/default/template/page/2columns-right.phtml.

I tried
<?php echo $this->helper('catalog/product_list_upsell')->getChildHtml('upsell_products') ?>
but it did not work.

How do I write that in 2columns-right.phtml or somewhere else?

2columns-right.phtml (I want to add ‘upsell_products’ just above <div id="footercontainer">)
-----
<html>
<body>
...........
<?php echo $this->getChildHtml('upsell_products') ?>

<!-- [start] footer -->
<div id="footercontainer">
<div id="footer">
<?php echo $this->getChildHtml('footer') ?>
</div>
</div>
<!-- [end] footer -->

<?php echo $this->getChildHtml('before_body_end') ?>
</div>
</body>
</html>

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top