OS Property support center

Adding City and Region to featured properties

  • Jim
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 9 months ago #53738 by Jim
I would like to add City & State to the featured properties.

How can i do this? as i don't want to show the full address.


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

More
10 years 9 months ago #53829 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Adding City and Region to featured properties
Hi,
You should modify file:
templates > osprealestate > html > mod_ospropertyrandom > default.php
to add address of properties at the front-end
Thanks
Dam

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

  • Jim
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 9 months ago #53889 by Jim
Thanks Dam,
what code should be modified so it only shows the City & Region not the full address in the osprealestate > html > mod_ospropertyrandom > default.php template?

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

More
10 years 9 months ago #53893 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Adding City and Region to featured properties
Hi,
You can add php code to retrieve state and city of properties.
MySql table for state: #__osrs_states
city: #__osrs_cities
Thanks
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan