OS Property support center

SOLVED !!! Change Adress Format

  • Barbara
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago - 10 years 9 months ago #64821 by Barbara
SOLVED !!! Change Adress Format was created by Barbara
Hej,

I have another format question.

Currently I have this format:
Rosengartenstrasse 17, Brunnen, 6440, Schwyz (Address, Location, PC, Region)

This is a bit odd for Switzerland and all available formats are not suitable either. I would need somehting like this:

Rosengartenstrasse 17, 6440 Brunnen (Address, PC Location)

I assume it is also in helpers/common.php. Can you kindly give me a hint, where to change this?

Thank you very much.

Barbara
Last edit: 10 years 9 months ago by Dang Thuc Dam.

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

More
10 years 9 months ago #64882 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Change Adress Format
Hi,
To change the Address format, please follow these steps
1. Open file:
administrator > components > com_osproperty > classes > configuration > properties
2. Find
Code:
$optionArr = array(); $optionArr[0] = "0,1,2,3,4"; $optionArr[1] = "0,1,4,2,3"; $optionArr[2] = "0,1,4,3,2"; $optionArr[3] = "0,1,3,4,2"; $optionArr[4] = "0,1,3,2,4"; $optionArr[5] = "0,1,2,4,3";

And add this
Code:
$optionArr = array(); $optionArr[0] = "0,1,2,3,4"; $optionArr[1] = "0,1,4,2,3"; $optionArr[2] = "0,1,4,3,2"; $optionArr[3] = "0,1,3,4,2"; $optionArr[4] = "0,1,3,2,4"; $optionArr[5] = "0,1,2,4,3"; $optionArr[6] = "0,4,1,2";

Thanks
Dam

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

  • Barbara
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #64886 by Barbara
Replied by Barbara on topic Change Adress Format
Hi,

there is no subdirectory configuration in classes.
And i searched through all files. Your posted code snipped can not be found.
I have version: 2.8.0
I asume there were a change with your latest version. However I prefer not to upgrade at the moment. It is working like a charm right now, and I have to finish the project by end of week.
Thank you.

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

More
10 years 3 weeks ago #77829 by Qtal
Replied by Qtal on topic Change Adress Format
remains valid code to change the address format?
I have changed:
$optionArr = array();
$optionArr[0] = "0,1,2,3,4";
$optionArr[1] = "0,1,4,2,3";
$optionArr[2] = "0,1,4,3,2";
$optionArr[3] = "0,1,3,4,2";
$optionArr[4] = "0,1,3,2,4";
$optionArr[5] = "0,1,2,4,3";
$optionArr[6] = "0,4,1";
I have selected in administration option 6, but format addres in templates and mod_os_contentslider is not modified

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

More
10 years 3 weeks ago #77837 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Change Adress Format
Hi,
Please submit ticket and send your site information with super admin account. I will check the issue for you.
Thanks
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan