Results 1 to 4 of 4

Thread: Making Account Name show above Billing Address

  1. #1
    ilanp is offline Member
    Join Date
    Mar 2008
    Posts
    5

    Unhappy Making Account Name show above Billing Address

    Hello,

    I am attempting to add the name of the account over the billing address for shipping labels, I need the format to show exactly as it is only with the account name on top of the billing address.

    Eg:

    Coney Island Hospital
    1111 Coney Island Ave
    Brooklyn, NY, 11235

    Right now the account name is:
    Coney Island Hospital

    The billing address is:
    1111 Coney Island Ave
    Brooklyn, NY, 11235

    How can I alter the code to simply add the account name <br> billing address?

    I just want it to show in the text field; both fields, one on top of the other.

    I have been trying to do this for the past two hours, including trying to find what line of code to edit in the account modules, I can't seem to find it and it's driving me mad.

    Any help is much appriciated. Thank you all for reading.


    -- Edit --
    The view I am trying to modify is the account detail view.

  2. #2
    ilanp is offline Member
    Join Date
    Mar 2008
    Posts
    5

    Default Re: Making Account Name show above Billing Address

    Anyone knows how to do this? It's driving me crazyyy

  3. #3
    dpatech is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    NC
    Posts
    287

    Default Re: Making Account Name show above Billing Address

    In Sugar 5.0b you can change the file include/SugarFields/Fields/Address/en_usDetailView.tpl as follows. Note that this is for US English language.

    Change from this:

    HTML Code:
    <td width='99%' class="dataField">
    {$fields.{{$displayParams.key}}_address_street.value|nl2br}<br>
    {$fields.{{$displayParams.key}}_address_city.value} {$fields.{{$displayParams.key}}_address_state.value}&nbsp;&nbsp;{$fields.{{$displayParams.key}}_address_postalcode.value}<br>
    {$fields.{{$displayParams.key}}_address_country.value}
    </td>
    To this.
    HTML Code:
    <td width='99%' class="dataField">
    {$fields.name.value}<br>
    {$fields.{{$displayParams.key}}_address_street.value|nl2br}<br>
    {$fields.{{$displayParams.key}}_address_city.value} {$fields.{{$displayParams.key}}_address_state.value}&nbsp;&nbsp;{$fields.{{$displayParams.key}}_address_postalcode.value}<br>
    {$fields.{{$displayParams.key}}_address_country.value}
    </td>
    Note the addition of the {$fields.name.value} line.
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

  4. #4
    ilanp is offline Member
    Join Date
    Mar 2008
    Posts
    5

    Smile Re: Making Account Name show above Billing Address

    Success! I just had to deploy to make it work, the changes I made didn't appear until I deployed the new layout and now it looks exactly as I want it.

    Thank you very much.
    Last edited by ilanp; 2008-03-05 at 01:40 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Contact and Account address
    By People3 in forum Help
    Replies: 6
    Last Post: 2008-11-26, 06:39 PM
  2. Replies: 1
    Last Post: 2008-06-25, 03:17 AM
  3. Address & account management
    By george_bbch in forum General Discussion
    Replies: 14
    Last Post: 2006-05-01, 04:11 PM
  4. Replies: 0
    Last Post: 2005-04-22, 12:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •