Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Magento Enterprise 1.7 toolbar.phtml - code for category page numbers missing
 
KarenKilroy
Member
 
Avatar
Total Posts:  39
Joined:  2009-02-26
 

I noticed there is an important piece of code missing from the following files in Magento Enterprise 1.7:

/app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml

and

/app/design/frontend/enterprise/default/template/catalog/product/list/toolbar.phtml

Among the functions of toolbar.phtml, is an important one in which it creates the “pager” at the top of category pages. Normally, if the number of items in a category exceeds the number of items set to display on one page, this pager displays a page number navigator so you can see the 2nd, 3rd, and subsequent pages that list this category. However, that page number navigator is apparently missing in this version of Magento Enterprise. That means the visitor can’t easily find subsequent pages of that category listing.

I tried copying in the page number code from previous versions of toolbar.phtml and it breaks the categories. This is what I found in older Magento toolbar.phtml:

<strong><?php echo $this->__('Page:'?></strong>
                <
ol>
                
<?php if (!$this->isFirstPage()): ?>
                    
<li><a href="<?php echo $this->getPreviousPageUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo $this->__('Previous') ?>" /></a></li>
                
<?php endif ?>
                <?php 
foreach ($this->getPages() as $_page): ?>
                    <?php 
if ($this->isPageCurrent($_page)): ?>
                        
<li><span class="on"><?php echo $_page ?></span></li>
                    
<?php else: ?>
                        
<li><a href="<?php echo $this->getPageUrl($_page) ?>"><?php echo $_page ?></a></li>
                    
<?php endif ?>
                <?php 
endforeach;; ?>
                <?php 
if (!$this->isLastPage()): ?>
                    
<li><a href="<?php echo $this->getNextPageUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_right.gif') ?>" alt="<?php echo $this->__('Next') ?>" /></a></li>
                
<?php endif ?>
                
</ol>

Has anyone else run into this?

tx
Karen

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