Results 1 to 5 of 5

Thread: Address information panel in account edit layout: multiple fields grouped?

  1. #1
    raphinou is offline Member
    Join Date
    Aug 2005
    Posts
    8

    Default Address information panel in account edit layout: multiple fields grouped?

    Hi,

    in the edit layout for accounts, the Address information panel contains only 2 fields: Billing Street and Shipping Street. But these contain multiple fields (with street, city, etc). How can I edit these fields contained in Billing street and shipping street? They don't appear in the fields list.
    Also, can I duplicate this with my own custom fields?

    Thanks in advance for your help

    Raphaël

  2. #2
    mtvtaras's Avatar
    mtvtaras is offline Sugar Community Member
    Join Date
    Nov 2009
    Posts
    82

    Default Re: Address information panel in account edit layout: multiple fields grouped?

    Hi raphinou!

    You can change a fields in the Studio on admin panel.
    Write me if you will have any questions.

  3. #3
    raphinou is offline Member
    Join Date
    Aug 2005
    Posts
    8

    Default Re: Address information panel in account edit layout: multiple fields grouped?

    Hey mtvtaras,

    I had already searched in the studio, and checked again, but I don't see how the multiple fields of the address are grouped as one filed in the layout editor. Any idea?

    Thanks

    Raph

  4. #4
    mtvtaras's Avatar
    mtvtaras is offline Sugar Community Member
    Join Date
    Nov 2009
    Posts
    82

    Default Re: Address information panel in account edit layout: multiple fields grouped?

    Hi!

    You should replace in vardefs.php

    PHP Code:
      'lbl_address_information'=>array(
                          array (
                          
    'name' => 'billing_address_street',
                          
    'hideLabel'=> true,
                          
    'type' => 'address',
                          
    'displayParams'=>array('key'=>'billing''rows'=>2'cols'=>30'maxlength'=>150),
                          ),
                    array (
                          
    'name' => 'shipping_address_street',
                          
    'hideLabel' => true,
                          
    'type' => 'address',
                          
    'displayParams'=>array('key'=>'shipping''copy'=>'billing''rows'=>2'cols'=>30'maxlength'=>150),
                          ),                
           ), 
    to

    PHP Code:
           'lbl_address_information'=>array(
           array(
                     array(
                            
    'name'=>'billing_address_street',
                            
    'label'=>'LBL_BILLING_ADDRESS',
                            
    'customCode' => '<textarea id="billing_address_street" name="billing_address_street">{$fields.billing_address_street.value}</textarea>'       ),
                       array(
                            
    'name'=>'shipping_address_street',
                            
    'label'=>'LBL_SHIPPING_ADDRESS',
                            
    'customCode' => '<textarea id="shipping_address_street" name="shipping_address_street">{$fields.shipping_address_street.value}</textarea>'
                        
    )
                ),
           array(
                     array(
                            
    'name'=>'billing_address_city',
                            
    'label'=>'LBL_BILLING_ADDRESS_CITY'
                        
    ),
                       array(
                            
    'name'=>'shipping_address_city',
                             
    'label'=>'LBL_SHIPPING_ADDRESS_CITY'
                        
    )
                ),
           array(
                     array(
                            
    'name'=>'billing_address_state',
                            
    'label'=>'LBL_BILLING_ADDRESS_STATE'
                        
    ),
                       array(
                            
    'name'=>'shipping_address_state',
                             
    'label'=>'LBL_SHIPPING_ADDRESS_STATE'
                        
    )
                ),
           array(
                     array(
                            
    'name'=>'billing_address_postalcode',
                            
    'label'=>'LBL_BILLING_ADDRESS_POSTALCODE'
                        
    ),
                       array(
                            
    'name'=>'shipping_address_postalcode',
                             
    'label'=>'LBL_SHIPPING_ADDRESS_POSTALCODE'
                        
    )
                ),
           array(
                     array(
                            
    'name'=>'billing_address_country',
                            
    'label'=>'LBL_BILLING_ADDRESS_COUNTRY'
                        
    ),
                       array(
                            
    'name'=>'shipping_address_country',
                             
    'label'=>'LBL_SHIPPING_ADDRESS_COUNTRY'
                        
    )
                ),
           ), 

    And then you should clear the cache (cache/modules/Accounts).

  5. #5
    CosminPT is offline Junior Member
    Join Date
    Sep 2011
    Posts
    4

    Default Re: Address information panel in account edit layout: multiple fields grouped?

    "Hi!

    You should replace in vardefs.php"

    you can be more specific ? What is the location of vardefs.php? [sugar root]/... I`m trying to add one dropdown list for the countries.

    Thanks,

    Cosmin

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: 2008-08-23, 03:09 PM
  2. Quick Question: Where to edit Project sub-panel layout?
    By andybesy in forum Developer Help
    Replies: 1
    Last Post: 2006-08-14, 12:49 PM
  3. Replies: 0
    Last Post: 2005-12-01, 03:24 PM
  4. How to Edit the Panel under Account Search Form
    By vinhtran in forum General Discussion
    Replies: 0
    Last Post: 2005-09-16, 04:16 AM

Tags for this Thread

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
  •