Skip to content

Commit

Permalink
CET-537/fix: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkwr committed Dec 6, 2024
1 parent 85754cb commit 07628b0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Controller/Payment/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,23 @@ private function updateCustomerAddress($order, $twoOrder)
->getList($searchCriteria)
->getItems();
$customerAddress = $customerAddressCollection[0] ?? null;
$logData = [
'parent_id' => $order->getCustomerId(),
'firstname' => $billingAddress->getFirstname(),
'middlename' => $billingAddress->getMiddlename(),
'lastname' => $billingAddress->getLastname(),
'street' => $billingAddress->getStreet(),
'city' => $billingAddress->getCity(),
'postcode' => $billingAddress->getPostcode(),
'country_id' => $billingAddress->getCountryId(),
'region_id' => $billingAddress->getRegionId(),
'region' => $billingAddress->getRegion(),
'telephone' => $billingAddress->getTelephone(),
'company' => $billingAddress->getCompany(),
];

$message = __('Search Criteria Data: %1', json_encode($logData));
$this->orderService->addOrderComment($order, $message);
}
if ($customerAddress && $customerAddress->getId()) {
if (isset($twoOrder['buyer']['company']['organization_number'])) {
Expand Down

0 comments on commit 07628b0

Please sign in to comment.