Results 1 to 4 of 4

Thread: Customizing shipping_address_street in Accounts module

  1. #1
    meovino is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    14

    Default Customizing shipping_address_street in Accounts module

    I have added a new custom field in Studio for Shipping Address Zip 4, which I want to add to the Shipping Address fields. It appears that the address fields are grouped together. Is there any way I can edit this group? Just adding a row and putting the new field in that row throws the layout off.

    Thanks!

  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: Customizing shipping_address_street in Accounts module

    Hi Meovino

    You need to modify the tpl and javascript files include/SugarFields/Fields/Address/ to add this new field into layout or copy this folder to another one.
    And you need to add the attribute 'type' => 'Newaddress' into fields defs at the editviewdefs if you copy this folder to a new one to safe the original code.
    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
    meovino is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    14

    Default Re: Customizing shipping_address_street in Accounts module

    Is this upgrade safe? I don't have any problem doing it, I just don't want it wiped out in an upgrade. Thanks!

  4. #4
    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: Customizing shipping_address_street in Accounts module

    Hi meovino

    The upgrade safe strategy is duplicating the folder include/SugarFields/Fields/Address to a new one, modify what is necessary and refer the new address field into editviewdefs.php and detailviewdefs.php.
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to add Accounts as subpanel in custom module
    By rraushan2007 in forum Developer Help
    Replies: 6
    Last Post: 2008-09-25, 04:34 AM
  2. Replies: 2
    Last Post: 2008-08-18, 02:57 AM
  3. Module to Display Filtered List of Accounts?
    By bp1 in forum Developer Help
    Replies: 0
    Last Post: 2008-08-12, 09:23 PM
  4. Replies: 3
    Last Post: 2008-08-09, 03:53 AM
  5. Accounts Module SubPanels Problem
    By chad.hutchins in forum Developer Help
    Replies: 2
    Last Post: 2008-05-05, 04:57 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
  •