Return to Snippet

Revision: 30188
at August 9, 2010 21:14 by dmistriotis


Updated Code
<!-- check if in view all mode: -->
<?php $_limit =  $this->getLimit(); ?>
<?php $_viewAllMode = (strtolower($_limit) == 'all') ? true : false; ?>

<!-- back to normal pagination if in view all mode: -->
    <?php if ($_viewAllMode == true): ?>
        <?php $_itemsPerPage = 9 ?>
    	<div class="pages">
    	    <a href="<?php echo $this->getLimitUrl($_itemsPerPage); ?>"><?php echo $this->__('View %d items per page', $_itemsPerPage) ?></a>
    	</div>
    <?php endif; ?>


<!-- show all code: -->
        <?php //Show all: ?>
        <a href="<?php echo $this->getLimitUrl('all'); ?>"><?php echo $this->__('View All') ?></a>
        &nbsp;&nbsp;

Revision: 30187
at August 9, 2010 21:13 by dmistriotis


Updated Code
<!-- check if in view all mode: -->
<?php $_limit =  $this->getLimit(); ?>
<?php $_viewAllMode = (strtolower($_limit) == 'all') ? true : false; ?>

<!-- back to normal pagination if in view all mode: -->
    <?php if ($_viewAllMode == true): ?>
        <?php $_itemsPerPage = 9 ?>
    	<div class="pages">
    	    <a href="<?php echo $this->getLimitUrl($_itemsPerPage); ?>"><?php echo $this->__('View %d items per page', $_itemsPerPage) ?></a>
    	</div>
    <?php endif; ?>


<!-- show all code: -->
<?php //Show all: ?>
        <a href="<?php echo $this->getLimitUrl('all'); ?>"><?php echo $this->__('View All') ?></a>
        &nbsp;&nbsp;

Revision: 30186
at August 9, 2010 21:01 by dmistriotis


Updated Code
<!-- check if in view all mode: -->

<!-- show all code: -->
<?php //Show all: ?>
        <a href="<?php echo $this->getLimitUrl('all'); ?>"><?php echo $this->__('View All') ?></a>
        &nbsp;&nbsp;

Revision: 30185
at August 9, 2010 20:41 by dmistriotis


Initial Code
<?php //Show all: ?>
        <a href="<?php echo $this->getLimitUrl('all'); ?>"><?php echo $this->__('View All') ?></a>
        &nbsp;&nbsp;

Initial URL


Initial Description
File location: default -> template -> page -> html -> pager.phtml  __or__ default -> template -> catalog -> product -> list -> toolbar.phtml

Initial Title
view all products to pager

Initial Tags


Initial Language
PHP