View Single Post
  #10  
Old 07-23-2018, 06:24 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Extending Tags Module without Breaking Search

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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote