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

Product Reviews on a Product Page
 
omikron1989
Member
 
Total Posts:  46
Joined:  2010-12-15
 

try this code for the URL:

<a href="<?php echo Mage::getUrl('review/product/list', array('id' => $this->getProduct()->getId(), 'category'  => $this->getProduct()->getCategoryId()));?>#review-form"><?php echo $this->__('Add Your Review'?></a>
 
Magento Community Magento Community
Magento Community
Magento Community
 
redwert
Member
 
Avatar
Total Posts:  43
Joined:  2010-03-17
 

Not working in magento 1.5.0.1
I am trying all posted in this thread but reviews are not display on product page

 
Magento Community Magento Community
Magento Community
Magento Community
 
omikron1989
Member
 
Total Posts:  46
Joined:  2010-12-15
 

Try this too:

http://www.e-commercewebdesign.co.uk/blog/magento-tutorials/product-reviews-on-product-view-page.php/comment-page-1#comment-1971

 
Magento Community Magento Community
Magento Community
Magento Community
 
redwert
Member
 
Avatar
Total Posts:  43
Joined:  2010-03-17
 
omikron1989 - 07 July 2011 05:16 AM

Try this too:

http://www.e-commercewebdesign.co.uk/blog/magento-tutorials/product-reviews-on-product-view-page.php/comment-page-1#comment-1971

I am already try this, its show form to post review, but dont show reviews.

 
Magento Community Magento Community
Magento Community
Magento Community
 
omikron1989
Member
 
Total Posts:  46
Joined:  2010-12-15
 

Which files did you edit?

 
Magento Community Magento Community
Magento Community
Magento Community
 
redwert
Member
 
Avatar
Total Posts:  43
Joined:  2010-03-17
 
omikron1989 - 07 July 2011 05:31 AM

Which files did you edit?

app > design > frontend > default > mytheme > layout>catalog.xml
and
app > design > frontend > default > mytheme > template > catalog > product > view.phtml

 
Magento Community Magento Community
Magento Community
Magento Community
 
omikron1989
Member
 
Total Posts:  46
Joined:  2010-12-15
 

hmm strange, might be a version thing.

This is the code i used in catalog.xml

<reference name="content">
            <
block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
            <
block type="review/product_view_list" name="product.info.product_additional_data" as="product_review" template="review/product/view/list.phtml">
     
    </
block>

and this is the code i used in the view.phtml

<?php echo $this->getChildHtml('product_review'?>

check the names correctly. Also are you using the modern theme? I removed the tabs from the product page before i used the code above

 
Magento Community Magento Community
Magento Community
Magento Community
 
switchjohnny
Member
 
Total Posts:  41
Joined:  2009-07-02
 

To fix the url issue, I just did a str_replace. Might not be the best solution, but it works.

Go to
\template\review\product\view\list.phtml

Add this code

<dt>
<?php
    $reviewURL 
$this->getReviewUrl($_review->getId());
    
$reviewURL str_replace("catalog","review",$reviewURL);
?>
<a href="<?php echo $reviewURL ?>"><?php echo $this->htmlEscape($_review->getTitle()) ?></a<?php echo $this->__('Review by <span>%s</span>'$this->htmlEscape($_review->getNickname())) ?>
</dt>
 
Magento Community Magento Community
Magento Community
Magento Community
 
MagePsycho
Moderator
 
Avatar
Total Posts:  1702
Joined:  2009-06-23
 

You can easily achieve the Product Reviews on a Product Page by using Easy Tabs:
http://www.magentocommerce.com/extension/packages/module/1725/magento-easytabs

Thanks
Regards

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jellej
Jr. Member
 
Total Posts:  8
Joined:  2011-06-19
 
Northern Voyageur - 13 March 2010 01:44 PM

To fix the wrong URL here is what I did.

create a file
app/code/local/Mage/Review/Product/View/List.php

copy this into the file

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   Mage
 * @package    Mage_Review
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */

/**
 * Detailed Product Reviews
 *
 * @category   Mage
 * @package    Mage_Review
 * @author      Magento Core Team <core@magentocommerce.com>
 */
class Mage_Review_Block_Product_View_List extends Mage_Review_Block_Product_View
{
    
protected $_forceHasOptions false;

    public function 
getProductId()
    
{
        
return Mage::registry('product')->getId();
    
}

    
protected function _prepareLayout()
    
{
        parent
::_prepareLayout();

        if (
$toolbar $this->getLayout()->getBlock('product_review_list.toolbar')) {
            $toolbar
->setCollection($this->getReviewsCollection());
            
$this->setChild('toolbar'$toolbar);
        
}

        
return $this;
    
}

    
protected function _beforeToHtml()
    
{
        $this
->getReviewsCollection()
            ->
load()
            ->
addRateVotes();
        return 
parent::_beforeToHtml();
    
}

    
public function getReviewUrl($id)
    
{
        
return Mage::getUrl('review/*/view', array('id' => $id));
    
}
}

Notice this last part has
return Mage::getUrl('review/*/view', array('id' => $id));
… the rest is the same as the original.

Make sure the path is app/code/local/Mage/Review/Block/Product/View/List.php

 
Magento Community Magento Community
Magento Community
Magento Community
 
lq031052
Jr. Member
 
Total Posts:  7
Joined:  2011-08-31
 
omikron1989 - 05 July 2011 11:40 AM

try this code for the URL:

<a href="<?php echo Mage::getUrl('review/product/list', array('id' => $this->getProduct()->getId(), 'category'  => $this->getProduct()->getCategoryId()));?>#review-form"><?php echo $this->__('Add Your Review'?></a>

omikron1989,Thank you so much!
It works very well for magento 1.6
In catalog.xml,i add this:
<action method="addTab" translate="title" module="catalog">
<alias>reviews</alias>
<title>Product Reviews</title>
<block>review/product_view_list</block>
<template>review/product/view/list.phtml</template>
</action>

 
Magento Community Magento Community
Magento Community
Magento Community
 
Yotpo
Jr. Member
 
Avatar
Total Posts:  4
Joined:  2012-07-07
 

There is a much simpler solution, you can use Yotpo Social Reviews extension.

http://www.magentocommerce.com/magento-connect/yopto-reviews-5759.html

There are very detailed instructions of how to integrate in to the product pages of a Magento strore. It is also free of charge.

These are its basic feature:

* email for pending review
* weekly digest email
* analytics of your reviewers
* improved SEO capabilities
* sending email reminders automatically after purchase

 
Magento Community Magento Community
Magento Community
Magento Community
 
ermes007
Jr. Member
 
Total Posts:  15
Joined:  2011-04-15
 

Is there a complete solution for showing reviews on product view page for 1.7 ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
fstelzner
Jr. Member
 
Total Posts:  9
Joined:  2010-04-09
 

Hi All,

i have a (hopefully) simple question… i inserted customer reviews on my product page by adding

<block type="review/product_view_list" name="product.info.options.wrapper.bottom" as="reviews" template="review/product/view/list.phtml"/>

to my catalog.xml

Well… that added customer reviews to the bottom of the page, but i wanted to specify the position myself by adding

<?php echo $this->getChildHtml('reviews'); ?>

to the div where i want it to appear.

Can you help me?

 
Magento Community Magento Community
Magento Community
Magento Community
 
ljk999
Jr. Member
 
Total Posts:  4
Joined:  2011-11-08
 

Hi,

I have this working on 1.7.0.2 magento site. But now my problem is that when you do a Compare products there is a link to the Reviews. That link takes you to a review page: /review/product/list/id/573/ rather than back to the detailed product page. I can\’t figure out what to use for the link in
/template/review/herler/summary_short.phtml so the Reviews link goes back to the Product Details page rather the reviews page.

Has anyone been able to fix this issue?

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