- Posts: 15
- Thank you received: 4
OS Property support center
How to change the label Price
- JOYCE
-
Topic Author
- Offline
- New Member
-
Less
More
10 years 7 months ago #56990
by JOYCE
How to change the label Price was created by JOYCE
Hi dam and team, I will appreciate if you can help me with this issue. I want to to change the label in property information "Price" by "Price from" see attached image. It is possible to do this?
Thank you in advance
Thank you in advance
- Dang Thuc Dam
-
- Away
- Administrator
-
Less
More
- Posts: 13245
- Thank you received: 1729
10 years 7 months ago #57021
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic How to change the label Price
Hi Joyce,
Please open file:
components > com_osproperty > templates > theme1 > listing.html.tpl.php
find:
echo OSPHelper::generatePrice($row->curr,$row->price);
if($row->rent_time != ""){
echo " /".JText::_($row->rent_time);
}
and replace by
echo "From ". OSPHelper::generatePrice($row->curr,$row->price);
if($row->rent_time != ""){
echo " /".JText::_($row->rent_time);
}
Thanks
Dam
Please open file:
components > com_osproperty > templates > theme1 > listing.html.tpl.php
find:
echo OSPHelper::generatePrice($row->curr,$row->price);
if($row->rent_time != ""){
echo " /".JText::_($row->rent_time);
}
and replace by
echo "From ". OSPHelper::generatePrice($row->curr,$row->price);
if($row->rent_time != ""){
echo " /".JText::_($row->rent_time);
}
Thanks
Dam
Please Log in or Create an account to join the conversation.
- JOYCE
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 4
10 years 7 months ago #57105
by JOYCE
Replied by JOYCE on topic How to change the label Price
Thank you Dam the solution is working good.
Can you please tell me How can I translate this word "From" in the other language installed?
Can you please tell me How can I translate this word "From" in the other language installed?
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Away
- Administrator
-
Less
More
- Posts: 13245
- Thank you received: 1729
10 years 7 months ago #57115
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic How to change the label Price
OK, please relace
echo "From ". OSPHelper::generatePrice($row->curr,$row->price);
by
echo Jtext::_('OS_FROM'). OSPHelper::generatePrice($row->curr,$row->price);
Thanks
Dam
echo "From ". OSPHelper::generatePrice($row->curr,$row->price);
by
echo Jtext::_('OS_FROM'). OSPHelper::generatePrice($row->curr,$row->price);
Thanks
Dam
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.