OS Property support center

How to change "Price for" field

  • zenoni
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 11 months ago - 11 years 11 months ago #36538 by zenoni
How to change "Price for" field was created by zenoni
Please could you advice how to change "Price for" filed?

Is it possible to import this field? On the CSV Form import I can't see any option to import this field. It is important field, pelease could you implement a import feature for this field.
Last edit: 11 years 11 months ago by zenoni.

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

  • Dang Thuc Dam
  • Away
  • Administrator
  • Administrator
More
11 years 11 months ago #36541 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: How to change "Price for" field
Hi,
I will find the solution for this problem soon
Thanks
Dam

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

More
11 years 9 months ago - 11 years 9 months ago #38262 by Ranala
Replied by Ranala on topic Re: How to change "Price for" field
What is the best possibility to change the values (per night, per week .....) ?
- with the control panel - but do not know where ?
- or directly in the database ?
- or in the language files com_osproperty.ini relating to the listing.php and/or property.php ?

Thanks - ranala
Last edit: 11 years 9 months ago by Ranala.

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

  • Dang Thuc Dam
  • Away
  • Administrator
  • Administrator
More
11 years 9 months ago #38266 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: How to change "Price for" field
Hi,
You can change in files
components > com_osproperty > classes > listing.php
administrator > components > com_osproperty > classes > property.php
and the code in the dropdown list is
$timeArr[] = JHTML::_('select.option','',JText::_('OS_NOT_APPLICABLE'));
$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'));
$lists = JHTML::_('select.genericlist',$timeArr,'rent_time','class="input-medium"','value','text',$row->rent_time);

OS_PER_SQUARE_METRE .etc are defined in language file
Thanks
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan