OS Property support center

SOLVED !!! Address format

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
7 years 10 months ago - 7 years 10 months ago #102501 by Stephen
SOLVED !!! Address format was created by Stephen
Hi
In which file can I change the ordering of the addressformat? [e.g Address, City, State/Province, Postcode, Region).
I need this in a different order starting with State/Province, city, .....

Regards
Stephen

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Attachments:
Last edit: 7 years 10 months ago by Mr. Dam.

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

  • Mr. Dam
  • Away
  • Administrator
  • Administrator
More
7 years 10 months ago #102502 by Mr. Dam
Replied by Mr. Dam on topic Addressformat
Hi Stephen,
You can modify the Configure option for Address format in file:
root > administrator > components > com_osproperty > classes > configuration > properties > property.php
Find:
Code:
$addressArr = array(); $addressArr[0] = JText::_('OS_ADDRESS'); $addressArr[1] = JText::_('OS_CITY'); $addressArr[2] = JText::_('OS_STATE'); $addressArr[3] = JText::_('OS_REGION'); $addressArr[4] = JText::_('OS_POSTCODE'); $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";

You can add more option based into array $optionArr on above code
Thanks
Dam
The following user(s) said Thank You: Stephen

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

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
7 years 10 months ago #102514 by Stephen
Replied by Stephen on topic Addressformat
Hi
Thanks a lot.

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.

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

Moderators: Mr. DamNguyen Phu Quan