*

karotu

  • **
  • 5 posts
Cars plugin search problem
« 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

*

MB Themes

Re: Cars plugin search problem
« Reply #1 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.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mixcarros

  • *
  • 4 posts
Re: Cars plugin search problem
« Reply #2 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.

*

MB Themes

Re: Cars plugin search problem
« Reply #3 on: February 03, 2022, 09:10:06 AM »
@mixcarros
Expectation is you have no listings those would match criteria.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sparky

  • ***
  • 89 posts
Re: Cars plugin search problem
« Reply #4 on: February 03, 2022, 12:51:17 PM »
 Just showing configuration

Steps 1&2

« Last Edit: February 04, 2022, 05:03:27 PM by Sparky »

*

Sparky

  • ***
  • 89 posts
Re: Cars plugin search problem
« Reply #5 on: February 03, 2022, 12:52:18 PM »
Just showing configuration

Steps 3 & 4
« Last Edit: February 04, 2022, 05:03:39 PM by Sparky »

*

Sparky

  • ***
  • 89 posts
Re: Cars plugin search problem
« Reply #6 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.

*

mixcarros

  • *
  • 4 posts
Re: Cars plugin search problem
« Reply #7 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
« Last Edit: February 04, 2022, 09:54:16 PM by mixcarros »

*

MB Themes

Re: Cars plugin search problem
« Reply #8 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.

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mixcarros

  • *
  • 4 posts
Re: Cars plugin search problem
« Reply #9 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

*

mixcarros

  • *
  • 4 posts
Re: Cars plugin search problem
« Reply #10 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??
« Last Edit: February 07, 2022, 02:31:25 PM by mixcarros »

*

MB Themes

Re: Cars plugin search problem
« Reply #11 on: February 07, 2022, 03:03:57 PM »
@mixcarros
https://docs.osclasspoint.com/debug-php-errors

Code: [Select]
define('OSC_DEBUG_DB', true);
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots