- Posts: 106
- Thank you received: 1
OS Property support center
How to make Ajax Search - "Search by Listing ID"
- kalesh.suby
- Topic Author
- Offline
- Premium Member
-
Less
More
11 years 5 months ago #38051
by kalesh.suby
How to make Ajax Search - "Search by Listing ID" was created by kalesh.suby
Hi Dam,
Please see attached image.
I want to have a "Search by property ID" feature.
Each property will use its property ID and people should be able to search by "property ID".
I made a copy of the "Ajax search " module but I dont know how to modify it to make it a search by ID module.
Thanks
Please see attached image.
I want to have a "Search by property ID" feature.
Each property will use its property ID and people should be able to search by "property ID".
I made a copy of the "Ajax search " module but I dont know how to modify it to make it a search by ID module.
Thanks
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13025
- Thank you received: 1692
11 years 5 months ago #38061
by Mr. Dam
Replied by Mr. Dam on topic Re: How to make Ajax Search - "Search by Listing ID"
If you want the ajax search module to search through ID of properties, please follow these steps:
open file
components > com_osproperty > classes > listing.php
find
if($search_name == 1){
$query1[] = " a.pro_name like '%$keyword%'";
$query1[] = " a.ref like '%$keyword%'";
}
change it to
if($search_name == 1){
$query1[] = " a.id = '$keyword'";
$query1[] = " a.pro_name like '%$keyword%'";
$query1[] = " a.ref like '%$keyword%'";
}
Dam
open file
components > com_osproperty > classes > listing.php
find
if($search_name == 1){
$query1[] = " a.pro_name like '%$keyword%'";
$query1[] = " a.ref like '%$keyword%'";
}
change it to
if($search_name == 1){
$query1[] = " a.id = '$keyword'";
$query1[] = " a.pro_name like '%$keyword%'";
$query1[] = " a.ref like '%$keyword%'";
}
Dam
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.