丹尼(OP)已经自我回答了这个问题.
引用:
好的,我在这里找到了解决方案,但我也会在这里发布以获得更好的代码突出显示:创建一个新模块并覆盖位于的wishlist块:code/core/Mage/Wishlist/Block/Customer/Wishlist.php
并将以下内容添加到您的Wishlist.php
class Company_Wishlist_Block_Customer_Wishlist extends Mage_Wishlist_Block_Customer_Wishlist
{
protected function _prepareLayout()
{
parent::_prepareLayout();
$pager = $this->getLayout()
->createBlock('page/html_pager', 'wishlist.customer.pager')
->setCollection($this->getWishlist());
$this->setChild('pager', $pager);
$this->getWishlist()->load();
return $this;
}
public function getPagerHtml()
{
return $this->getChildHtml('pager');
}
}
Run Code Online (Sandbox Code Playgroud)
现在添加<?php echo $this->getPagerHtml(); ?>到view.phtml的开头和/或结尾位于:app/design/frontend/default/your_theme/template/wishlist/view.phtml.这应该够了吧.
注意:自我回答你自己的问题是绝对可以的.请将其作为真实答案发布,但不要在问题或评论中发布.发布真实答案有助于使"未答复"列表更加清晰(避免让其他人浪费时间).