I have address field which is stored in accounts module while creating the account. Here what I want is this address field should reflect in all modules can any one clearly explain me about this query .thanks in advance.
--- You need to create the address field in all desired modules. (Copy address field defination from \cache\modules\Accounts\Accountvardefs.php and add in your module in upgrade safe manner Path \custom\Extension\modules\YourModule\Ext\Vardefs\yourAddressFied.php )
After this hit Quick Repair and Rebuild and see address field is created.
--- Secondly after adding field you need to show field in editviewdefs.php,detailviewdefs.php. (For this copy address field(billing,shipping) arrays from \modules\Accounts\metadata\editviewdefs.php ,\modules\Accounts\metadata\detailviewdefs.php and add in your module's edit/deailviewdefs.php in upgrade safe manner Path :custom/modules/YourModule/metadate/editORdeailviewdefs.php)
<?php //WARNING: The contents of this file are auto-generated
// created: 2015-03-20 11:43:27 $dictionary['Account']['fields']['billing_address_country']['required']=true; $dictionary['Account']['fields']['billing_address_country']['audited']=true; $dictionary['Account']['fields']['billing_address_country']['comments']='The country used for the billing address'; $dictionary['Account']['fields']['billing_address_country']['merge_filter']='disabled';
// created: 2015-03-20 11:43:20 $dictionary['Account']['fields']['billing_address_postalcode']['required']=true; $dictionary['Account']['fields']['billing_address_postalcode']['audited']=true; $dictionary['Account']['fields']['billing_address_postalcode']['comments']='The postal code used for billing address'; $dictionary['Account']['fields']['billing_address_postalcode']['merge_filter']='disabled';
// created: 2015-03-10 07:07:36 $dictionary['Account']['fields']['account_type']['len']=100; $dictionary['Account']['fields']['account_type']['comments']='The Company is of this type'; $dictionary['Account']['fields']['account_type']['merge_filter']='disabled'; $dictionary['Account']['fields']['account_type']['required']=true; $dictionary['Account']['fields']['account_type']['audited']=true; $dictionary['Account']['fields']['account_type']['default']=''; $dictionary['Account']['fields']['account_type']['options']='acc_type_c_list';
// created: 2015-03-20 11:43:12 $dictionary['Account']['fields']['billing_address_state']['required']=true; $dictionary['Account']['fields']['billing_address_state']['audited']=true; $dictionary['Account']['fields']['billing_address_state']['comments']='The state used for billing address'; $dictionary['Account']['fields']['billing_address_state']['merge_filter']='disabled';
// created: 2015-03-20 11:43:34 $dictionary['Account']['fields']['billing_address_city']['required']=true; $dictionary['Account']['fields']['billing_address_city']['audited']=true; $dictionary['Account']['fields']['billing_address_city']['comments']='The city used for billing address'; $dictionary['Account']['fields']['billing_address_city']['merge_filter']='disabled';
// created: 2015-03-20 11:43:00 $dictionary['Account']['fields']['billing_address_street']['comments']='The street address used for billing address'; $dictionary['Account']['fields']['billing_address_street']['merge_filter']='disabled'; $dictionary['Account']['fields']['billing_address_street']['required']=true; $dictionary['Account']['fields']['billing_address_street']['audited']=true;
// created: 2015-02-23 08:09:30 $dictionary['Account']['fields']['shipping_address_street']['comments']='The street address used for for shipping purposes'; $dictionary['Account']['fields']['shipping_address_street']['merge_filter']='disabled';
<?php //WARNING: The contents of this file are auto-generated
// created: 2015-03-20 11:43:27 $dictionary['Account']['fields']['billing_address_country']['required']=true; $dictionary['Account']['fields']['billing_address_country']['audited']=true; $dictionary['Account']['fields']['billing_address_country']['comments']='The country used for the billing address'; $dictionary['Account']['fields']['billing_address_country']['merge_filter']='disabled';
// created: 2015-03-20 11:43:20 $dictionary['Account']['fields']['billing_address_postalcode']['required']=true; $dictionary['Account']['fields']['billing_address_postalcode']['audited']=true; $dictionary['Account']['fields']['billing_address_postalcode']['comments']='The postal code used for billing address'; $dictionary['Account']['fields']['billing_address_postalcode']['merge_filter']='disabled';
// created: 2015-03-10 07:07:36 $dictionary['Account']['fields']['account_type']['len']=100; $dictionary['Account']['fields']['account_type']['comments']='The Company is of this type'; $dictionary['Account']['fields']['account_type']['merge_filter']='disabled'; $dictionary['Account']['fields']['account_type']['required']=true; $dictionary['Account']['fields']['account_type']['audited']=true; $dictionary['Account']['fields']['account_type']['default']=''; $dictionary['Account']['fields']['account_type']['options']='acc_type_c_list';
// created: 2015-03-20 11:43:12 $dictionary['Account']['fields']['billing_address_state']['required']=true; $dictionary['Account']['fields']['billing_address_state']['audited']=true; $dictionary['Account']['fields']['billing_address_state']['comments']='The state used for billing address'; $dictionary['Account']['fields']['billing_address_state']['merge_filter']='disabled';
// created: 2015-03-20 11:43:34 $dictionary['Account']['fields']['billing_address_city']['required']=true; $dictionary['Account']['fields']['billing_address_city']['audited']=true; $dictionary['Account']['fields']['billing_address_city']['comments']='The city used for billing address'; $dictionary['Account']['fields']['billing_address_city']['merge_filter']='disabled';
// created: 2015-03-20 11:43:00 $dictionary['Account']['fields']['billing_address_street']['comments']='The street address used for billing address'; $dictionary['Account']['fields']['billing_address_street']['merge_filter']='disabled'; $dictionary['Account']['fields']['billing_address_street']['required']=true; $dictionary['Account']['fields']['billing_address_street']['audited']=true;
// created: 2015-02-23 08:09:30 $dictionary['Account']['fields']['shipping_address_street']['comments']='The street address used for for shipping purposes'; $dictionary['Account']['fields']['shipping_address_street']['merge_filter']='disabled';