OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Search module doesn't work properly! (0 viewing) 
VehicleManager component support
Go to bottom Favoured: 0
TOPIC: Search module doesn't work properly!
#5546
milomir87 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Search module doesn't work properly! 4 Years ago Karma: 0  
Hi!

First, just to say that this is a great component, but i have a problem with search module. When I want to choose maker from the list (for example Ford) and press the Search button, i get the list with all cars that I have, not just Ford. All the other fields in the search module (year, price, type, category...) are ok and work fine, except this one. Can anybody help me?

Thanks in advance!
 
Logged Logged  
  The administrator has disabled public write access.
#5554
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Search module doesn't work properly! 4 Years ago Karma: 61  
Hello,

Please go to file:
{yours site}/components/com_vehiclemanager/vehiclemanager.php

find code:
Code:

  if($vtype!=_VEHICLE_MANAGER_LABEL_ALL && $vtype!=0){
      $where[]= " LOWER(b.vtype)='%$vtype%'";
  }
  $Maker = " ";
  if($maker!=_VEHICLE_MANAGER_LABEL_ALL && $maker!=0){
      $where[]= " LOWER(b.maker)='%$maker%'";
  }



and replace to
Code:

  if($vtype!=_VEHICLE_MANAGER_LABEL_ALL && $vtype!=0){
      $where[]= " LOWER(b.vtype) = '$vtype'";
  }
  $Maker = " ";
  if($maker!=_VEHICLE_MANAGER_LABEL_ALL && $maker!==0){
      $where[]= " LOWER(b.maker) = '$maker'";
  }



Next find code:

Code:

  if($model!=_VEHICLE_MANAGER_LABEL_ALL && $model!=0){
      $where[]= " LOWER(b.vmodel) LIKE '$model'";
  }



and replace to
Code:

  if($model!=_VEHICLE_MANAGER_LABEL_ALL && $model!==0){
      $where[]= " LOWER(b.vmodel) LIKE '$model'";
  }



Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#5559
milomir87 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Search module doesn't work properly! 4 Years ago Karma: 0  
That's it!

Now it works perfectly!

Thank you very much for quick response.

Greetings from Serbia!
 
Logged Logged  
  The administrator has disabled public write access.
#5562
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Search module doesn't work properly! 4 Years ago Karma: 61  
Thank you for use ours components,



You may vote for us on joomla.org and write excellent review



If you will have some error or questions please write



Thanks

OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?