-1

I installed FME Layered Navigation with AJAX but the module doesn't have a count next to the attribute. My question is, how can I make this happen?

I tried to insert this code in filter_attribute.phtml but it gives me fatal error

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

Thanks!

thedeadlyone
  • 59
  • 2
  • 13

1 Answers1

0

Use $_item->getQty() instead.

Zentoaku
  • 766
  • 4
  • 12
  • Are you able to provide error message and stacktrace? – Zentoaku Aug 01 '14 at 16:37
  • Fatal error: Call to a member function getCount() on a non-object in /app/design/frontend/skin/theme/template/layerednav/filter_attribute.phtml on line 8 Fatal error: Class 'Mage' not found in /app/code/core/Mage/Core/functions.php on line 244 Fatal error: Class 'Mage' not found in /app/code/core/Mage/Core/Model/Mysql4/Session.php on line 88 – thedeadlyone Aug 01 '14 at 19:02
  • Check those two php files and debug them going deeper in structure. This might be also related to some bad implementation of this module (mostly happens when there's some mistake in config.xml). Next things to do: clear cache and sessions in /var folder, check your server error log, and you might be running out of space or memory (based on informations from some threads) – Zentoaku Aug 01 '14 at 21:03