Hi There
Is there a way i can change the way an address-block is being formatted.
i want to use sugar crm for a swiss company with international customers and contacts. to give you an example of the different address block styles, this is how an address in switzerland is written:
<salutation><first name><last name>
<street><number>
<zip code> <city>
so as you can see we have first the road name and then the house number, which is no problem with sugar because they are not being separated. but the bigger problem are zip codes. we print them first and then the city name and we don't need to write down a state here in switzerland.
on the other hand we have also us customers so we also need the us layout to work.
in os-commerce for example, the way format of an address block is chosen by the addresses country. so if in the country field it says switzerland, os_commerce uses a different formatting than when it says usa. of course this means you need to have a dropdown with all countries otherwhise it might be difficult to always spell it right or to know weather to write US, USA ur United States in that field![]()
to implement an automatic formatting like in os commerce is a little too much work right now, but maybe i could add a dropdown field with some choices of how we need them to be formatted so i can choose the formatting for each of my addresses. the question is, what do i need to modify to make the address block appear in a different layout when i look at the detailed view for example?
i'd appreciate your help
regards
pascal


LinkBack URL
About LinkBacks




Reply With Quote

Bookmarks