Quote Originally Posted by carlwhat View Post
i will look at it when i can...

best.
Great thank you. Below fixes the one issue where the company name is not being populated when adding a new address from the update_card page.

Around line 603 added the line that is in green below:
$return['company'] = $_POST['company'];

PHP Code:
 if ($_POST['address_selection'] == 'new') {
                
$this->addNewAddress();

                
$return['firstname'] = $_POST['firstname'];
                
$return['lastname'] = $_POST['lastname'];
                
$return['company'] = $_POST['company'];
                
$return['street_address'] = $_POST['street_address'];
                
$return['city'] = $_POST['city'];
                if (empty(
$_POST['zone_id'])) {
                    
$return['state'] = $_POST['state'];
                } else {
                    
$return['state'] = zen_get_zone_name($_POST['zone_country_id'], $_POST['zone_id'],
                        (
$_POST['state'] ?? ''));
                }
                
$return['postcode'] = $_POST['postcode'];
                
$return['country']['title'] = zen_get_country_name($_POST['zone_country_id']);