Hi @
xgarb,
Quote:
Originally Posted by xgarb
Is there some code in the statement that prevents the count function working?
|
I do not see any problem with the code you have shown (assuming that your ItemsList class has proper getSearchCondition() method). Moreover, I tried to replicate similar module locally and it works well: no errors with counting.
You should probably dig into \XLite\View\ItemsList\AItemsList::getItemsCount() method to find out the real reason of this problem. Surely, before that you should disable widget's cache (Look & feel > Performance section in admin area).
Tony