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>  ?>
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, privacy policy and cookie policy

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