bit of a problem I’ve found here - it generates the link to the review itself on the review’s title, but since we’re extracting this code and placing it in a different module, the link gets constructed with /catalog/ instead of /review/ - any idea on how to fix that?
@Rob Tull -
Thanks this gets me started. But now I have another issue lol.
If I add that review block to the catalog.xml - > <catalog_product_view> -> <reference name="content"> I can get the review block to showup either at top of the page, or the bottom depend where I place it in the XML file.
But what If I want the reviews block to showup in the middle of the page? Or more specific, under the products description block?
Seems that if I nest that review block any further such as :
So its ok to have the review block be nested directly into the content reference… but any deeper then that and it wont work?
There has got to be a solution here right?
To position the review on the product page, then just add:
<?php echo $this->getChildHtml('reviews') ?>
to your catalog/product/view.phtml template, where you want it to show… perhaps below additional data towards the bottom of your page? In this case the positioning of the XML code makes no difference, where the actual review block shows up on the product page.
One thing I can’t seem to fix, if anyone can assist:
In order to control the number of reviews on a review page, there appears to be a toolbar / counter (dropdown selection).
As this fix, above allows for the reviews to be shown directly on a product page, we would still need to have some control on how many reviews are displayed at a time… I thought by adding this XML line to the same catalog.xml page, that this would then appear:
Many thanks for the information, Rob Tull and speang.
firestorm - 30 June 2009 12:29 PM
bit of a problem I’ve found here - it generates the link to the review itself on the review’s title, but since we’re extracting this code and placing it in a different module, the link gets constructed with /catalog/ instead of /review/ - any idea on how to fix that?
I’d be interested in this, too. It’s not a major problem for me as I’ve edited template/review/product/view/list.phtml and removed the anchor altogether, leaving just the review summary itself.
One thing I can’t seem to fix, if anyone can assist:
In order to control the number of reviews on a review page, there appears to be a toolbar / counter (dropdown selection).
As this fix, above allows for the reviews to be shown directly on a product page, we would still need to have some control on how many reviews are displayed at a time… I thought by adding this XML line to the same catalog.xml page, that this would then appear:
One thing I can’t seem to fix, if anyone can assist:
In order to control the number of reviews on a review page, there appears to be a toolbar / counter (dropdown selection).
As this fix, above allows for the reviews to be shown directly on a product page, we would still need to have some control on how many reviews are displayed at a time… I thought by adding this XML line to the same catalog.xml page, that this would then appear:
Which code should I use to show this block on the productpage?
This code should be in this file, right?
app/design/frontend/*default*/*default*/template/catalog/product/view.phtml
I’m sorry i solved this tiny problem:
Solution: <?php echo $this->getChildHtml('product_reviews') ?>
I want to be able to let people just rate the item without writing a review. I was pointed to this thread as an answer but I don’t see anything in here to do that.
Also, I want people to be able to RATE the item directly from a catalog page (i.e. let them rate 15 items at a time without having to go to each product’s page).
I am new to magento, so maybe it is the terminology, but this thread talks about ‘the products’ page, which to me means an individual product…
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) */