× OS Property support center

SOLVED !!! set to No show_address in add/edit properties by default

  • Marco Bianchella
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 6 days ago - 6 months 4 days ago #108258 by Marco Bianchella
Hi Dam,

I need to set by default the select field to No instead of Yes of show_address because my clients are not expert and they forget to set it every time.

I tried to edit the file propertyedit.php but I can set the value, can you help me?

Thanks.

Marco
Last edit: 6 months 4 days ago by Dang Thuc Dam.

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

More
6 months 5 days ago #108287 by Dang Thuc Dam
Hi Marco,
To set Default value of field: Show Address is No, you can follow below steps:
1. Open file: root > components > com_osproperty > classes > listing.php
2. Find:
$row->show_address = 1;
and change to
$row->show_address = 0;

Good luck
Dam

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

  • Marco Bianchella
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 5 days ago #108291 by Marco Bianchella
Perfect it works, thank you!

Marco

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

Moderators: Dang Thuc DamNguyen Phu Quan