× 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
9 months 1 week ago - 9 months 6 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: 9 months 6 days ago by Mr. Dam.

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

  • Mr. Dam
  • Mr. Dam's Avatar
  • Away
  • Administrator
  • Administrator
More
9 months 1 week ago #108287 by Mr. 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
9 months 1 week ago #108291 by Marco Bianchella
Perfect it works, thank you!

Marco

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

Moderators: Mr. DamNguyen Phu Quan