Advertisement:

Author Topic: User items - search results  (Read 416 times)

bobadilla

  • Newbie
  • *
  • Posts: 5
User items - search results
« on: December 16, 2017, 09:06:34 pm »
I'm using 3.7.4 with Osclass Gum theme.

On item.php when a user clicks to 'see all ads' the results are displayed correctly, but the counter-search line always returns: "1 - 0 of 0 listings". This isn't the case for a category search, which functions correctly.

Similarly, there is no pagination on the search results page for user listed items. It's governed simply by a field in General Settings: Search page shows 'X' listings at most

Can anyone help? Are these errors linked?

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: User items - search results
« Reply #1 on: December 17, 2017, 10:16:39 am »
Look here https://forums.osclass.org/general-help/search-in-public-profile/

Look for Teseo's solution words in there.

bobadilla

  • Newbie
  • *
  • Posts: 5
Re: User items - search results
« Reply #2 on: December 17, 2017, 06:05:26 pm »
Perfect answer, marius. Thank you!  ;D

Tesco's solution does indeed fix both issues.

In oc-includes/osclass/model/Search.php simply comment out the following like so:

Code: [Select]
// $this->userTableLoaded = true;
Source: https://forums.osclass.org/development/admin-items-filter-by-email-not-showing-pagination-modern-theme-3-7-1/msg157903/#msg157903