- Posts: 4
- Thank you received: 3
OS Property support center
SOLVED !!! Lease vs Sale Price lists?
- Matesrates
- Topic Author
- Offline
- New Member
-
Less
More
12 years 5 months ago - 9 years 10 months ago #22661
by Matesrates
SOLVED !!! Lease vs Sale Price lists? was created by Matesrates
Hi
Is there any way to define two price lists, for those properties for lease opposed to those which are for sale? The component comes ready to accept lease properties, but it's ridiculous to think they should use the same price ranges as buying outright.
Thanks
Is there any way to define two price lists, for those properties for lease opposed to those which are for sale? The component comes ready to accept lease properties, but it's ridiculous to think they should use the same price ranges as buying outright.
Thanks
Last edit: 9 years 10 months ago by Mr. Dam.
The following user(s) said Thank You: alex
Please Log in or Create an account to join the conversation.
- alex
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
12 years 5 months ago #22665
by alex
Replied by alex on topic Re: Lease vs Sale Price lists?
Dam, help Us.
This is very very necessary.
The other way to solve this problem is allowing text area instead of list.
This is very very necessary.
The other way to solve this problem is allowing text area instead of list.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
12 years 5 months ago #22669
by Mr. Dam
Replied by Mr. Dam on topic Re: Lease vs Sale Price lists?
Sorry, currently, OS Property hasn't got the different price lists. You can setup the price lists with many options as you want from low to high.
We don't want to replace the select list by the textbox because we feel it is not professional.
But you can do by your self like:
In data table: #__osrs_pricegroups, add one column
Depend on Lease, Sale are categories or property types, you can enter the name of new column is category or type_id
For example: category_id Attribute Int(11)
And after you enter the price options in the backend, you go to the data table and enter the id of category or property type in that column. (Depend on Lease or Sale is category or property type)
And in the list page
components > com_osproperty > classes > listing.php
function listProperties
Depend on the layout you select category or property type (Sale, lease). you can edit the source code
Find this
$db->setQuery("Select price as value, display_price as text from #__osrs_pricegroups order by ordering");
If you set the Sale or Lease is one category you can change to
$db->setQuery("Select price as value, display_price as text from #__osrs_pricegroups where category_id = '$category_id' order by ordering");
if you set Sale or Lease is one property type you can change to
$db->setQuery("Select price as value, display_price as text from #__osrs_pricegroups where type_id = '$property_type' order by ordering");
In 2 above queries, category_id or type_id is the column name that you added in table #__osrs_pricegroups.
Of course, you need to know about php, Joomla coding if you want to make this change, because it's a bit difficult.
Good luck
Dam
We don't want to replace the select list by the textbox because we feel it is not professional.
But you can do by your self like:
In data table: #__osrs_pricegroups, add one column
Depend on Lease, Sale are categories or property types, you can enter the name of new column is category or type_id
For example: category_id Attribute Int(11)
And after you enter the price options in the backend, you go to the data table and enter the id of category or property type in that column. (Depend on Lease or Sale is category or property type)
And in the list page
components > com_osproperty > classes > listing.php
function listProperties
Depend on the layout you select category or property type (Sale, lease). you can edit the source code
Find this
$db->setQuery("Select price as value, display_price as text from #__osrs_pricegroups order by ordering");
If you set the Sale or Lease is one category you can change to
$db->setQuery("Select price as value, display_price as text from #__osrs_pricegroups where category_id = '$category_id' order by ordering");
if you set Sale or Lease is one property type you can change to
$db->setQuery("Select price as value, display_price as text from #__osrs_pricegroups where type_id = '$property_type' order by ordering");
In 2 above queries, category_id or type_id is the column name that you added in table #__osrs_pricegroups.
Of course, you need to know about php, Joomla coding if you want to make this change, because it's a bit difficult.
Good luck
Dam
Please Log in or Create an account to join the conversation.
- stavros
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
12 years 2 months ago #26720
by stavros
Replied by stavros on topic Re: Lease vs Sale Price lists?
can you give the exact solution code for using different price list...or is that above?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
12 years 2 months ago #26736
by Mr. Dam
Replied by Mr. Dam on topic Re: Lease vs Sale Price lists?
Hi Stavros,
We are developing new feature of OS Property that allow you can assign price list to the property type. And it will be effect to search module, advance search and locator searching function in the frontend of OS Property. This feature will be released in this month.
Thanks
Dam
We are developing new feature of OS Property that allow you can assign price list to the property type. And it will be effect to search module, advance search and locator searching function in the frontend of OS Property. This feature will be released in this month.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Wesley
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
9 years 10 months ago - 9 years 10 months ago #65053
by Wesley
Replied by Wesley on topic Re: Lease vs Sale Price lists?
This is working for me now. thanks Dam
Last edit: 9 years 10 months ago by Wesley.
Please Log in or Create an account to join the conversation.
Moderators: Mr. 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.