Your review tab in product view page is lack with toolbar. So the solution is adding toolbar block inside your review tab section. From your question, it is not clear that which block that holds CUSTOMER REVIEW
section that comes under Review
tab.
For the sake of better understanding, I assumes it is a block with name customer.review.in.product.view
. In that case, you need to do a layout update somewhat like this
File : app\design\frontend\<package>\<theme>\layout\local.xml
<layout>
<catalog_product_view>
<reference name="content">
<block type="page/html_pager" name="product_review_list.toolbar" />
</reference>
</catalog_product_view>
</layout>
This layout update just inserts a toolbar block inside product view page layout. Job is not over. Now we need to set toolbar block with collection. In this case it is review collection.
For this, find your backend class definition for the block customer.review.in.product.view
and put this code inside
protected function _prepareLayout()
{
parent::_prepareLayout();
if ($toolbar = $this->getLayout()->getBlock('product_review_list.toolbar')) {
$toolbar->setCollection($this->getReviewsCollection());
$this->setChild('toolbar', $toolbar);
}
return $this;
}
Let us analyse the code here. The method that we used here is _prepareLayout()
. This method will invoke during layout preparation. It first try to get a block with name product_review_list.toolbar
. Since we define this block through our layout update, it will get the find our custom block successfully.
Next it sets review collection to this block. In order to set the review collection, it is very important that, customer.review.in.product.view
block class should extend the class Mage_Review_Block_Product_View
.This is because, this class is the place where review collection is loading. I hope the assumed block extends this block. Otherwise this wont work.
Finally our toolbar block is setting as a child block for our review block. You are done. Clear the cache and load the page. It will now paginate review section in your product view page.
I need to mention that, I didn't try this code. That is because, I cannot regenerate the situation with given details. But it should work I guess.