Hereīs what Iīve tried so far for option b.
In custom/modules/accounts/metadata/detailviewdefs.php:
Just below the shipping/billing address fields:
PHP Code:
4 =>
array (
0 =>
array (
'customCode'=>'<input class="button" title="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'] .
'" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name='.$this->bean->name.'&html=change_address' .
'&primary_address_street=' . str_replace(array("\rn", "\r", "\n"), array('','','<br>'), urlencode($this->bean->billing_address_street)) .
'&primary_address_city=' . $this->bean->billing_address_city .
'&primary_address_state=' . $this->bean->billing_address_state .
'&primary_address_postalcode=' . $this->bean->billing_address_postalcode .
'&primary_address_country=' . $this->bean->billing_address_country .
'", true, false);\' value="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE']. '">',
'label' => 'Copy',
),
1 =>
array (
//to be done
),
),
This gives me a button that opens the desired popup for contacts, but it shows all contacts available.
All parameters ('account_name') are empty.
What did I forget to do?
Bookmarks