0

I want to add product count to the toolbar.phtml. The current code results in a blank page. Can anyone suggest an edit to get it working?

<?php <p class="amount">
                    <?php if($this->getLastPageNum()>1): ?>
                        <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
                    <?php else: ?>
                        <strong><?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?></strong>
                    <?php endif; ?>
                </p>  ?>

1 Answer 1

3

Remove <?php and ?>

<p class="amount">
<?php if($this->getLastPageNum()>1): ?>
    <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
<?php else: ?>
    <strong><?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?></strong>
<?php endif; ?>
</p>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.