OS Property support center

Price for Dropdown

  • alireza
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #92759 by alireza
Price for Dropdown was created by alireza
Hi,

How can i add "Per Year" in price for dropwon when property type is for rent. i just have below options:
-Not applicable
-Per Night
-Per Week
-Per Month
-Per Square Feet
-Per Square Meter

Thanks

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

More
7 years 2 months ago #92817 by Mr. Dam
Replied by Mr. Dam on topic Price for Dropdown
Hi,
To add "Per Year" into field Rent time frame, please follow these solution
1. Open file:

root > components > com_osproperty > classes > listing.php

and

root > administrator > components > com_osproperty > classes > property.php

Find:
Code:
$timeArr[] = JHTML::_('select.option','OS_PER_NIGHT',JText::_('OS_PER_NIGHT')); $timeArr[] = JHTML::_('select.option','OS_PER_WEEK',JText::_('OS_PER_WEEK')); $timeArr[] = JHTML::_('select.option','OS_PER_MONTH',JText::_('OS_PER_MONTH')); $timeArr[] = JHTML::_('select.option','OS_PER_SQUARE_FEET',JText::_('OS_PER_SQUARE_FEET')); $timeArr[] = JHTML::_('select.option','OS_PER_SQUARE_METRE',JText::_('OS_PER_SQUARE_METRE'));

and add
Code:
$timeArr[] = JHTML::_('select.option','OS_PER_YEAR',JText::_('OS_PER_YEAR'));
2. Open file

root > language > en-GB > en-GB.com_osproperty.ini

and

root > administrator > language > en-GB > en-GB.com_osproperty.ini


and add
OS_PER_YEAR="Per Year"

3. If you use more than one language, please use Translation tool at back-end of OS Property to filter and translate the language constant OS_PER_YEAR for other languages

Thanks
Dam
The following user(s) said Thank You: alireza

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

Moderators: Mr. DamNguyen Phu Quan