I need to move the related products to
below the product options
and above the add to cart button
Is there a way to call the related products from within addtocart.phtml?
I tried moving the following out of view.phtml into addtocart.phtml but nothing shows
if ($tmpHtml = trim($this->getChildHtml('catalog.product.related')))
echo '<div class="box-sidebar-inner">'. $tmpHtml .'</div>';
Can anyone help with this.
Best Answer
You should change your layout file catalog.xml:
Was:
Should be:
Your code should work then.
In case you have getChildHtml('') block you should create block in addtocart.phtml template: