Php Magento FME分层导航,属性为产品计数

Php Magento FME分层导航,属性为产品计数,php,magento,zend-framework,layered-navigation,Php,Magento,Zend Framework,Layered Navigation,我使用AJAX安装了FME分层导航,但该模块在属性旁边没有计数。我的问题是,我怎样才能做到这一点 我试图在filter_attribute.phtml中插入此代码,但它给出了致命错误 (<?php echo $_item->getCount() ?>) () 谢谢 改用$\u item->getQty()。您是否能够提供错误消息和堆栈跟踪?致命错误:调用成员函数getCount()在第8行的/app/design/frontend/skin/theme/template/l

我使用AJAX安装了FME分层导航,但该模块在属性旁边没有计数。我的问题是,我怎样才能做到这一点

我试图在filter_attribute.phtml中插入此代码,但它给出了致命错误

(<?php echo $_item->getCount() ?>)
()

谢谢

改用
$\u item->getQty()

您是否能够提供错误消息和堆栈跟踪?致命错误:调用成员函数getCount()在第8行的/app/design/frontend/skin/theme/template/layerednav/filter_attribute.phtml中的非对象上致命错误:第244行的/app/code/core/Mage/core/functions.php中找不到类“Mage”。致命错误:第88行的/app/code/core/Mage/core/Model/Mysql4/Session.php中找不到类“Mage”。请检查这两个php文件并进一步调试它们在结构上。这也可能与此模块的某些错误实现有关(通常发生在config.xml中出现错误时)。接下来要做的事情:清除/var文件夹中的缓存和会话,检查服务器错误日志,您可能会耗尽空间或内存(基于某些线程的信息)