Support Forums - Classified Ads Script Osclass

Osclass plugin support => Attributes Plugins => Topic started by: kriskoyk on February 16, 2022, 08:45:46 PM

Title: Show all features in the search
Post by: kriskoyk on February 16, 2022, 08:45:46 PM
Is it possible to appear in the search of all attributes regardless of category in the sidebar, since there is only one category? And how is this done?
Title: Re: Show all features in the search
Post by: MB Themes on February 18, 2022, 02:30:30 PM
@kriskoyk
You will have to edit plugin files. In functions.php find:
Code: [Select]
function atr_search_form($catId = '') {
  $html = '';
  $cat_id = isset($catId[0]) ? $catId[0] : '';

  if($catId <= 0) {
    return false;
  }


Replace with:
Code: [Select]
function atr_search_form($catId = '') {
  $html = '';
Title: Re: Show all features in the search
Post by: kriskoyk on February 20, 2022, 09:43:51 PM
The issue with the appearance was resolved and thank you.

I have put two features with two subcategories. The type is Control Panels. When I search and select both categories, there are no results. If I make premium ads, then I have the results. Any idea what's wrong?
Title: Re: Show all features in the search
Post by: MB Themes on February 21, 2022, 12:51:16 PM
Depends how search threat multiselection.
It can be "match to all selected" or "match to any of selected".
Check attribute settings.
Title: Re: Show all features in the search
Post by: kriskoyk on February 21, 2022, 03:46:56 PM
I have done this, with all the alternatives but to no avail. I only get results if I make premioum ads
Title: Re: Show all features in the search
Post by: MB Themes on February 21, 2022, 04:36:30 PM
@kriskoyk
Does not make sense.
You will have to review SQL queries on search page or reproduce issue on demo site.
Title: Re: Show all features in the search
Post by: kriskoyk on February 21, 2022, 10:52:48 PM
It is rather a matter of operation of the add-on. When we check in the search all the features and the ad has only one of them then the ad does not appear, unless it is premium. I think this is not right because the user wants all the results of the ads even if an ad has only one feature of what he checked in the search.
Title: Re: Show all features in the search
Post by: MB Themes on February 22, 2022, 09:15:38 AM
Premium listings are surely not impacted by plugin, there will be no filtering at all on premiums.
I would say you have configured attribute incorrectly or you expecting something that is not provided by plugin.
Title: Re: Show all features in the search
Post by: kriskoyk on February 22, 2022, 12:36:28 PM
Ok. Thanks for the answers. Yes, it is indeed an item I request and which can not provide this add-on. Maybe in a future version.
Title: Re: Show all features in the search
Post by: MB Themes on February 22, 2022, 01:06:21 PM
Describe in detail what you mean and maybe...
Title: Re: Show all features in the search
Post by: kriskoyk on February 22, 2022, 03:25:23 PM
I mean in the future in a new version other features can be added to the add-on, including the one I wanted.