Due to some reason we required the rating review layout should look different on list page and different on view page but as magento had default one file which will work for both in list page and view page
Now we can easily show different layout of review in List page and different in view page or any other file
Need to follow this step
Suppose we need to change the Layout for the Rating in list page
1) Search the following code
and replace with
2) Now create the listreview.phtml under app/design/frontend/yourtheme/review/helaper/summary_listreview.phtml
Here you can add the existing code of the review from app/design/frontend/yourtheme/review/helaper/summary.phtml and change according to the need
and last
3)add the file name under app/code/local/Review/Block/Helper.php
that's it you will get the layout for list page as you want
Hope this will help you!
Need to follow this step
Suppose we need to change the Layout for the Rating in list page
1) Search the following code
<?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
and replace with
<?php echo $this->getReviewsSummaryHtml($_product, "listreview", true) ?>
2) Now create the listreview.phtml under app/design/frontend/yourtheme/review/helaper/summary_listreview.phtml
Here you can add the existing code of the review from app/design/frontend/yourtheme/review/helaper/summary.phtml and change according to the need
and last
3)add the file name under app/code/local/Review/Block/Helper.php
that's it you will get the layout for list page as you want
Hope this will help you!
It works!
ReplyDelete