$activeShippingAddressId =
$customerData['additional'
]['user'
]['default_shipping_address_id'
] ?? null;
if (!
empty($customerData['shippingaddress'
]['country'
]['id'
])) { $country =
$this->
get(CountryGatewayInterface::
class)->
getCountry($customerData['shippingaddress'
]['country'
]['id'
],
$this->
get(ContextServiceInterface::
class)->
getContext());
$customerData['shippingaddress'
]['country'
] =
$this->
get(LegacyStructConverter::
class)->
convertCountryStruct($country);
} $this->
View()->
assign('activeBillingAddressId',
$activeBillingAddressId);
$this->
View()->
assign('activeShippingAddressId',
$activeShippingAddressId);
$this->
View()->
assign('sUserData',
$customerData);
$this->
View()->
assign('userInfo',
$this->
get('shopware_account.store_front_greeting_service'
)->
fetch());
$this->
View()->
assign('sUserLoggedIn',
$this->admin->
sCheckUser());
$this->
View()->
assign('sAction',
$this->request->
getActionName());
if ($this->
isOneTimeAccount() && !\
in_array($this->request->
getActionName(),
['abort', 'login', 'register'
])) { $this->
logoutAction();
$this->
redirect(['controller' => 'register'
]);
} } /**
* @return void
*/