$this->
forward('index', 'register', 'frontend',
$this->
getForwardParameters());
return;
} $customerData =
$this->admin->
sGetUserData();
if (!\
is_array($customerData)) { $this->
forward('index', 'register', 'frontend',
$this->
getForwardParameters());
return;
} $this->response->headers->
addCacheControlDirective('no-store'
);
$this->response->headers->
addCacheControlDirective('no-cache'
);
$activeBillingAddressId =
$customerData['additional'
]['user'
]['default_billing_address_id'
] ?? null;
$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);