【问题标题】:Magento 1.7: toolbar/pager.phtml: getShowAmounts/getShowPerPage-> Where can I configure this?Magento 1.7:工具栏/pager.phtml:getShowAmounts/getShowPerPage-> 我在哪里可以配置这个?
【发布时间】:2012-11-29 23:11:20
【问题描述】:

从 Magento CE 1.4.2.0 更新到 CE 1.7.0.2 后,我的工具栏坏了。

但我已经修复了它,但我的想法是错误的。

在文件 app/design/frontend/base/default/template/page/html/pager.phtml

我们有 3 个 if/endif,但我找不到可以配置它的地方:

<?php if($this->getUseContainer()): ?>

<?php if($this->getShowPerPage()): ?>

<?php if($this->getShowAmounts()): ?>

我已经注释掉了,所以我可以使用它。

我可以在哪里设置使用容器?

我想知道为什么它不起作用,我的 getShowPerPage 和 getShowAmounts, 因为我是在Admin Backend->System-Config->Catalog->Shop中设置的!

为什么 getShowPerPage 和 getShowAmounts 不起作用?

【问题讨论】:

    标签: configuration toolbar magento-1.7 backend


    【解决方案1】:

    在文件 \app\code\core\Mage\Page\Block\Html\Pager.php 中签出方法

    getShowPerPage() 
    
    getShowAmounts()
    

    调试一下,应该就到这里了……

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多