Magento How To Display Product Reviews on Product Page With Pagination


Hi Friend's

Display Product review on product page in Review Tab with Pagination

First open your theme review.xml
Ex. app/design/frontend/[Your_Theme]/default/layout/review.xml

And Add this code

Code:

<catalog_product_view>
    <reference name="product.info">
        <block type="page/html_pager" name="product_review_list.toolbar" />
        <block type="core/template" name="product_review_list.count" template="review/product/view/count.phtml" />
        <block type="review/product_view_list" name="product.reviews" as="reviews" template="review/product/view/list.phtml" after="additional">
            <action method="addToParentGroup"><group>detailed_info</group></action>
            <action method="setTitle" translate="value"><value>Reviews</value></action>
        </block>
    </reference>

</catalog_product_view>

And also you have display review form after review listing see in image


Code:

<catalog_product_view>
    <reference name="product.info">
        <block type="page/html_pager" name="product_review_list.toolbar" />
        <block type="core/template" name="product_review_list.count" template="review/product/view/count.phtml" />
        <block type="review/product_view_list" name="product.reviews" as="reviews" template="review/product/view/list.phtml" after="additional">
            <action method="addToParentGroup"><group>detailed_info</group></action>
            <action method="setTitle" translate="value"><value>Reviews</value></action>
            <block type="review/form" name="product.review.form" as="review_form">
                <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label">
                    <label>Review Form Fields Before</label>
                    <action method="setMayBeInvisible"><value>1</value></action>
                </block>
            </block>
        </block>
    </reference>
</catalog_product_view>

Now Flush Magento Cache and refresh page

Hope this information is helpful to you :)

4 comments:

  1. Nice Post Buddy But form section in review tab section is not showing

    ReplyDelete
    Replies
    1. Hi Sushant Vishwas

      I have check my code it's working proper. i have use magento 1.9.2.1 version. please check your version.

      Thanks

      Delete
  2. Thanks for the best blog.it was very useful for me.keep sharing such ideas in the future as well.this was actually what i was looking for,and i am glad to came here!
    magento development company in bangalore 

    ReplyDelete
  3. Interesting blog which attracted me more.Spend a worthful time.keep updating more.
    Digital marketing company in Chennai

    ReplyDelete