Try the Demo

Magento Forum

   
product review pager
 
tonythemediaguy
Member
 
Total Posts:  31
Joined:  2008-08-16
 

Been stumped by this one for a few hours. Pagination works on the site everywhere except specifically the reviews section of a product page.

It shows a page list in the toolbar but they are not links. I’ve taken a look at /app/design/frontend/base/default/template/page/html/pager.phtml and have manually set the link just to a # but on the frontend there is no <a> tag in the output.

Anyone know of a fix? I’ve tried some of the other pager.phtml issues’ solutions I’ve found on my reviews blocks to no avail.

Here is what I’m seeing:

Image Attachments
productreviews.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
tonythemediaguy
Member
 
Total Posts:  31
Joined:  2008-08-16
 

I’ve narrowed it down to this block inside that file:

<?php foreach ($this->getFramePages() as $_page): ?>
            <?php 
if ($this->isPageCurrent($_page)): ?>
                
<li class="current"><?php echo $_page ?></li>
            
<?php else: ?>
                
<li><a href="<?php echo $this->getPageUrl($_page) ?>"><?php echo $_page ?></a></li>
            
<?php endif;?>
        <?php 
endforeach;?>

It’s not showing any urls for this part or the “next page” “previous page” links. It’s just stripping it off for some reason. Even if I manually set it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tonythemediaguy
Member
 
Total Posts:  31
Joined:  2008-08-16
 

I’ve narrowed it down to this block inside that file:

<?php foreach ($this->getFramePages() as $_page): ?>
            <?php 
if ($this->isPageCurrent($_page)): ?>
                
<li class="current"><?php echo $_page ?></li>
            
<?php else: ?>
                
<li><a href="<?php echo $this->getPageUrl($_page) ?>"><?php echo $_page ?></a></li>
            
<?php endif;?>
        <?php 
endforeach;?>

It’s not showing any urls for this part or the “next page” “previous page” links. It’s just stripping it off for some reason. Even if I manually set it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kingie
Jr. Member
 
Total Posts:  7
Joined:  2011-04-20
 

Does anyone know how to adjust the numbers of reviews that can be shown per page? I’d preferably like the options to be 5, 10 and 15.

This option is available in admin for products in list and grid views but not for reviews. Could this be accomplished by editing a layout xml file?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Display_Wizard
Jr. Member
 
Total Posts:  15
Joined:  2011-02-06
Garstang
 

Bump!  I need to know what Kingie needs to know as well.

How do I edit the default number of reviews shown per page?

 Signature 

Peter Symonds - Display Wizard - Best at Banner Stands

 
Magento Community Magento Community
Magento Community
Magento Community
 
jayanta1988
Jr. Member
 
Avatar
Total Posts:  10
Joined:  2012-09-19
 

Hi!

you can change it from app/code/core/Mage/Page/Block/Html/Pager.php

here you’ll find this line

protected $_availableLimit = array(10=>10,20=>20,50=>50);

change it like:

protected $_availableLimit = array(5=>5,10=>10,50=>50);

smile done..

 Signature 

Thanks & Regards,
Jayanta Roy | Magento Developer

http://justonestepsolution.blogspot.in

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