OS Property support center

SOLVED !!! Featured Properties Module

More
6 years 9 months ago - 6 years 9 months ago #100225 by Chris
Hello,
This module shows the # of bathrooms before bedrooms.
How can I edit to so that bedrooms are shown before bathrooms?
Thanks
Last edit: 6 years 9 months ago by Mr. Dam.

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

More
6 years 9 months ago #100251 by Mr. Dam
Replied by Mr. Dam on topic Featured Properties Module
Hi Chris,
Can you please send me the screenshot of the Feature properties module. I'll check to see if we can change Bedrooms to Bathrooms
Thanks
Dam

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

More
6 years 9 months ago #100293 by Chris
Replied by Chris on topic Featured Properties Module
Hi,
I attached a screenshot of the module on the homepage.
On the bottom you can see bathrooms shown before bedrooms, for example 2 then 3.
I would like to find where I can edit the code (or whatever needs to be done) in order for it to show bedrooms first.
Thanks
Attachments:

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

More
6 years 9 months ago #100319 by Mr. Dam
Replied by Mr. Dam on topic Featured Properties Module
Hi,
Please open file:
root > modules > mod_ospropertyrandom > tmpl > default.php
Find:
Code:
if(($show_bedrooms == 1) and ($property->bed_room > 0)){ $addtionalArr[] = "<span class='bedroom_label'><i class='ospico-bed ".$font_height."'></i> ".$property->bed_room."</span>"; } if(($show_bathrooms == 1) and ($property->bath_room > 0)){ $addtionalArr[] = "<span class='bedroom_label'><i class='ospico-bath ".$font_height."'></i> ".OSPHelper::showBath($property->bath_room)."</span>"; }
and change to
Code:
if(($show_bathrooms == 1) and ($property->bath_room > 0)){ $addtionalArr[] = "<span class='bedroom_label'><i class='ospico-bath ".$font_height."'></i> ".OSPHelper::showBath($property->bath_room)."</span>"; } if(($show_bedrooms == 1) and ($property->bed_room > 0)){ $addtionalArr[] = "<span class='bedroom_label'><i class='ospico-bed ".$font_height."'></i> ".$property->bed_room."</span>"; }

Thanks
Dam

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

More
6 years 9 months ago #100468 by Chris
Replied by Chris on topic Featured Properties Module
Worked perfectly. Thank you so much!

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

More
6 years 2 months ago #108694 by Manuela Riegler
Replied by Manuela Riegler on topic Featured Properties Module
Hi :) Is it possible to display the Lot Size AND the sqmt in the Random Module?
I think this make sense, and to me it is necessary ... i habe a lot of properties in the countries outside cities ...
Waiting fpr your answer :)

Best Regards

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

More
6 years 2 months ago #108725 by Mr. Dam
Replied by Mr. Dam on topic Featured Properties Module
@Manuela Riegler: Unfortunately, nope

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

More
6 years 2 months ago #108905 by Manuela Riegler
Replied by Manuela Riegler on topic Featured Properties Module
Thanks, made a compromise ... "new mandatory field" lot size and in the preview it will now be displayed bolded :)
Best Regards, Manuela

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

Moderators: Mr. DamNguyen Phu Quan