- Posts: 15
- Thank you received: 0
OS Property support center
Add company phone
- Frédéric Boudet
-
Topic Author
- Offline
- New Member
-
Less
More
11 years 9 months ago #39172
by Frédéric Boudet
ABB
Add company phone was created by Frédéric Boudet
Hi, I need (customer request) to add company phone or agent mobile phone to property listing and to property details.
How can I do that ?
Thank you for your help.
How can I do that ?
Thank you for your help.
ABB
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13244
- Thank you received: 1729
11 years 9 months ago #39177
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Add company phone
Hi Frederic,
The agent mobile number is shown at the property details page already.
With the list of properties page, you can edit in file
components > com_osproperty > templates > your_current_template > listing.html.tpl.php
and
components > com_osproperty > templates > your_current_template > result.html.tpl.php
Thanks
Dam
The agent mobile number is shown at the property details page already.
With the list of properties page, you can edit in file
components > com_osproperty > templates > your_current_template > listing.html.tpl.php
and
components > com_osproperty > templates > your_current_template > result.html.tpl.php
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Frédéric Boudet
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
11 years 9 months ago #39188
by Frédéric Boudet
ABB
Replied by Frédéric Boudet on topic Re: Add company phone
I have add this in listing.html.tpl.php and in result.html.tpl.php :
Same blank result with company phone, the phone is not showing, I think it must be declared in a php file in classes, but which ?
Code:
<?php echo $row->agent_phone;?>
Same blank result with company phone, the phone is not showing, I think it must be declared in a php file in classes, but which ?
ABB
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13244
- Thank you received: 1729
11 years 9 months ago #39206
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Add company phone
Hi,
Please submit ticket and send your site information so i can help you add agent mobile number in the listing
Thanks
Dam
Please submit ticket and send your site information so i can help you add agent mobile number in the listing
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Frédéric Boudet
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
11 years 9 months ago #39228
by Frédéric Boudet
ABB
Replied by Frédéric Boudet on topic Re: Add company phone
Thank you but the site is not in production, give me the code I can do it.
ABB
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13244
- Thank you received: 1729
11 years 9 months ago #39233
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Add company phone
Hi,
You need to retrieve the mobile number of agent in the sql query in file
components > com_osproperty > classes > listing.php
function listProperties
query:
$query = "Select a.*,b.id as catid,b.category_name$lang_suffix as category_name,c.name as agent_name,c.photo as agent_photo,c.email as agent_email,d.id as typeid,d.type_name$lang_suffix as type_name,e.country_name from #__osrs_properties as a"
." LEFT JOIN #__osrs_categories as b on b.id = a.category_id"
." INNER JOIN #__osrs_agents as c on c.id = a.agent_id"
." LEFT JOIN #__osrs_types as d on d.id = a.pro_type"
." LEFT JOIN #__osrs_countries as e on e.id = a.country"
." WHERE 1=1";
and you add mobile into that sql
$query = "Select a.*,b.id as catid,b.category_name$lang_suffix as category_name,c.name as agent_name,c.mobile,c.photo as agent_photo,c.email as agent_email,d.id as typeid,d.type_name$lang_suffix as type_name,e.country_name from #__osrs_properties as a"
." LEFT JOIN #__osrs_categories as b on b.id = a.category_id"
." INNER JOIN #__osrs_agents as c on c.id = a.agent_id"
." LEFT JOIN #__osrs_types as d on d.id = a.pro_type"
." LEFT JOIN #__osrs_countries as e on e.id = a.country"
." WHERE 1=1";
And then, you will have call $row->mobile to show the mobile number of agent in the list of Properties page
Good luck
Dam
You need to retrieve the mobile number of agent in the sql query in file
components > com_osproperty > classes > listing.php
function listProperties
query:
$query = "Select a.*,b.id as catid,b.category_name$lang_suffix as category_name,c.name as agent_name,c.photo as agent_photo,c.email as agent_email,d.id as typeid,d.type_name$lang_suffix as type_name,e.country_name from #__osrs_properties as a"
." LEFT JOIN #__osrs_categories as b on b.id = a.category_id"
." INNER JOIN #__osrs_agents as c on c.id = a.agent_id"
." LEFT JOIN #__osrs_types as d on d.id = a.pro_type"
." LEFT JOIN #__osrs_countries as e on e.id = a.country"
." WHERE 1=1";
and you add mobile into that sql
$query = "Select a.*,b.id as catid,b.category_name$lang_suffix as category_name,c.name as agent_name,c.mobile,c.photo as agent_photo,c.email as agent_email,d.id as typeid,d.type_name$lang_suffix as type_name,e.country_name from #__osrs_properties as a"
." LEFT JOIN #__osrs_categories as b on b.id = a.category_id"
." INNER JOIN #__osrs_agents as c on c.id = a.agent_id"
." LEFT JOIN #__osrs_types as d on d.id = a.pro_type"
." LEFT JOIN #__osrs_countries as e on e.id = a.country"
." WHERE 1=1";
And then, you will have call $row->mobile to show the mobile number of agent in the list of Properties page
Good luck
Dam
The following user(s) said Thank You: Frédéric Boudet
Please Log in or Create an account to join the conversation.
- Frédéric Boudet
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
11 years 9 months ago - 11 years 9 months ago #39236
by Frédéric Boudet
ABB
Replied by Frédéric Boudet on topic Re: Add company phone
Wonderful, it's work fine, thank you !
Last request. The results (displaying property list) after filter from search module must be order by price, where is the code to change please ?
Last request. The results (displaying property list) after filter from search module must be order by price, where is the code to change please ?
ABB
Last edit: 11 years 9 months ago by Frédéric Boudet.
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13244
- Thank you received: 1729
11 years 9 months ago #39246
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Add company phone
Hi,
You can edit in the file
components > com_osproperty > classes > listing.php
function advSearch line 741
find: $Order_by = " ORDER BY a.isFeatured desc,a.id desc ";
and change to
$Order_by = " ORDER BY a.price desc ";
Good luck
Dam
You can edit in the file
components > com_osproperty > classes > listing.php
function advSearch line 741
find: $Order_by = " ORDER BY a.isFeatured desc,a.id desc ";
and change to
$Order_by = " ORDER BY a.price desc ";
Good luck
Dam
The following user(s) said Thank You: Frédéric Boudet
Please Log in or Create an account to join the conversation.
Moderators: Dang Thuc 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.