Note that there are some explanatory texts on larger screens.

plurals
  1. POMagento - display product reviews on product view page
    text
    copied!<p>I am having difficulty placing the product reviews on the main product view at a specific location. I can load them in the content area, but not at the specific location I require (within some of the view mark-up).</p> <p>I have a local.xml with the following in it:</p> <pre><code>&lt;catalog_product_view&gt; &lt;reference name="content"&gt; &lt;block type="review/product_view_list" name="product.info.product_additional_data" as="reviews" template="review/product/view/list.phtml"/&gt; &lt;/reference&gt; &lt;catalog_product_view&gt; </code></pre> <p>The above loads the reviews after all other content - as might be expected, due to content not being a templated block.</p> <p>I have tried defining the blocks outside of the content reference, and placing this at the relevant point:</p> <pre><code>&lt;?php echo $this-&gt;getChildHtml('reviews') ?&gt; </code></pre> <p>For clarity, here is where I need the block to appear in view.phtml:</p> <pre><code>&lt;div class="product-collateral"&gt; &lt;?php foreach ($this-&gt;getChildGroup('detailed_info', 'getChildHtml') as $alias =&gt; $html):?&gt; &lt;div class="box-collateral &lt;?php echo "box-{$alias}"?&gt;"&gt; &lt;?php if ($title = $this-&gt;getChildData($alias, 'title')):?&gt; &lt;h2&gt;&lt;?php echo $this-&gt;escapeHtml($title); ?&gt;&lt;/h2&gt; &lt;?php endif;?&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php endforeach;?&gt; &lt;?php echo $this-&gt;getChildHtml('upsell_products') ?&gt; &lt;?php echo $this-&gt;getChildHtml('product_additional_data') ?&gt; &lt;?php echo $this-&gt;getChildHtml('reviews') ?&gt; &lt;/div&gt; </code></pre> <p>Unfortunately, this doesn't output anything at all. I'm fairly new to Magento, and I'm at a loss how to achieve the above.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload