Results 1 to 6 of 6

Thread: How to show the billing address fields in only one line?

  1. #1
    danti is offline Junior Member
    Join Date
    Sep 2011
    Posts
    6

    Default How to show the billing address fields in only one line?

    Hello,

    I am trying to have the billing address shown in the Account detail view on only one line.
    For how much I try with the Studio, I can't seem to be able to do it.

    Is this a code modification or am I just missing some steps somewhere?

    thanks,
    a.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to show the billing address fields in only one line?

    Address field is a set of 5 fields.
    Address field is automatically rendered in DetailView to display in 3 lines.
    In order to display it in a single line you need to:
    • customize view.detail.php and override function preDisplay to render all address fields into a single one;
    • customize detailviewdefs to update the type of address field from 'address' to 'varchar'.


    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: How to show the billing address fields in only one line?

    You can customize the address-template en_us.DetailView.tpl in include\SugarFields\Fields\Address\
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  4. #4
    judgej is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    58

    Default Re: How to show the billing address fields in only one line?

    Quote Originally Posted by kuske View Post
    You can customize the address-template en_us.DetailView.tpl in include\SugarFields\Fields\Address\
    Is that really where you would want to customise it? Is that upgrade-safe?

  5. #5
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: How to show the billing address fields in only one line?

    You also can create a new non-db field handle by a function, and in this function you can computed the address informations to be just in one line.

    Then you have to update the module detailview layout to replace the existing address field for this custom one.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  6. #6
    danti is offline Junior Member
    Join Date
    Sep 2011
    Posts
    6

    Default Re: How to show the billing address fields in only one line?

    @All,

    thanks for your input.
    Now I have been asked to leave it like it is, but convert the billing_address_street field from a single line
    field to a HTML textarea field... can anyone point me to the place where that is defined?

    thanks a lot,
    a.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2009-09-10, 09:07 AM
  2. Billing & shipping address fields missing.
    By vishwasrao in forum Developer Help
    Replies: 2
    Last Post: 2009-04-21, 02:05 PM
  3. Lost Billing and Shipping Address fields
    By bstonehill in forum Help
    Replies: 4
    Last Post: 2008-09-08, 08:03 PM
  4. Replies: 2
    Last Post: 2008-08-23, 03:09 PM
  5. Replies: 3
    Last Post: 2008-03-05, 01:34 PM

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
  •