OS Property support center

How to change the label Price

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

Please Log in or Create an account to join the conversation.

  • Dang Thuc Dam
  • Away
  • Administrator
  • Administrator
More
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 Log in or Create an account to join the conversation.

More
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?

Please Log in or Create an account to join the conversation.

  • Dang Thuc Dam
  • Away
  • Administrator
  • Administrator
More
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

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc DamNguyen Phu Quan