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

Search module doesn't work properly!

milomir87 (Visitor)
Posts: 0
graphgraph
User Offline
Search module doesn't work properly! 12 Years, 3 Months 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.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Search module doesn't work properly! 12 Years, 3 Months ago
Karma: 102  
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.
milomir87 (Visitor)
Posts: 0
graphgraph
User Offline
Re:Search module doesn't work properly! 12 Years, 3 Months 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.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Search module doesn't work properly! 12 Years, 3 Months ago
Karma: 102  
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
»