Osclass Support Forums

Osclass plugin support => Free Osclass Plugins => Topic started by: karotu on January 06, 2022, 11:19:26 AM

Title: Cars plugin search problem
Post by: karotu on January 06, 2022, 11:19:26 AM
Hi,

I have added 2 cars with Mazda as Make. When I do a search using the drop down search feature in Vehicles, the returns No Results..

Has anyone solved this before?

Thanks
Title: Re: Cars plugin search problem
Post by: MB Themes on January 07, 2022, 10:21:52 AM
@karotu
Review your search query (enable DB debug mode), I think I did not experienced any issue using search with car attributes.
Title: Re: Cars plugin search problem
Post by: mixcarros on February 03, 2022, 12:12:32 AM
i have the same problem.
I can select the car's atribute, but when i try to search any car by brand it don't work.

I'm from Brasil and would like some help, from anyone to make it work.
Title: Re: Cars plugin search problem
Post by: MB Themes on February 03, 2022, 09:10:06 AM
@mixcarros
Expectation is you have no listings those would match criteria.
Title: Re: Cars plugin search problem
Post by: Sparky on February 03, 2022, 12:51:17 PM
 Just showing configuration

Steps 1&2

Title: Re: Cars plugin search problem
Post by: Sparky on February 03, 2022, 12:52:18 PM
Just showing configuration

Steps 3 & 4
Title: Re: Cars plugin search problem
Post by: Sparky on February 04, 2022, 05:02:50 PM
 Oh you are correct , I was searching from the main search and not from the "Detailed search box of the car attributes ". From what I am thinking , the car attributes of the make, model and car type are not being found in the vehicle search category in the main content, Or the car attributes (search_form.php) is not a part of the main search field. I'm just guessing at this cause I am no coder.
Title: Re: Cars plugin search problem
Post by: mixcarros on February 04, 2022, 09:44:01 PM
I've tried all this things, but still don't work.
Anyone woo could fix it for me? How much would coast to do this job?
I've put on a list to test a: Audi - model A3.
 But when i search on car filter it can't find.


is in portuguese, but you can try it in: mixcarros dot. com dot. br
Title: Re: Cars plugin search problem
Post by: MB Themes on February 07, 2022, 10:34:53 AM
Audi A3 listing:
http://mixcarros.com.br/index.php?page=item&id=4

But here it is not:
http://mixcarros.com.br/index.php?page=search&sOrder=dt_pub_date&iOrderType=desc&make=2&sCategory=31

Means, if you enable error log, something will be probably wrong there.

Title: Re: Cars plugin search problem
Post by: mixcarros on February 07, 2022, 02:21:00 PM
How to do this error log?
Sorry i'm not a professional DEV, so i can do it but i need a path to go.
If you could give me te path i'll do it.
thank's
Title: Re: Cars plugin search problem
Post by: mixcarros on February 07, 2022, 02:28:57 PM
I've found this error in error log.

[01-Feb-2022 16:41:08 America/Sao_Paulo] PHP Warning:  Invalid argument supplied for foreach() in /home2/smartr72/mixcarros.com.br/oc-content/plugins/cars_attributes/item_edit.php on line 75


On line 75 have this code:

  <label><?php _e('Car type', 'cars_attributes'); ?></label>
          <select name="car_type" id="car_type">
            <option value="" selected><?php _e('Select a car type', 'cars_attributes'); ?></option>
            <?php foreach($car_types[$locale['pk_c_code']] as $k => $v) { ?>
            <option value="<?php echo  $k; ?>" <?php if(@$detail['fk_vehicle_type_id'] == $k) { echo 'selected'; } ?>><?php echo @$v; ?></option>
            <?php } ?>
          </select>

May be anything on this code??
Title: Re: Cars plugin search problem
Post by: MB Themes on February 07, 2022, 03:03:57 PM
@mixcarros
https://docs.osclasspoint.com/debug-php-errors

Code: [Select]
define('OSC_DEBUG_DB', true);