Skip to content

Commit

Permalink
new gust checkout sync customer data (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadukia123 authored Aug 12, 2024
1 parent 16f78b5 commit 30d1961
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/code/Fera/Ai/Block/Footer/Checkout/Success.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ public function getOrderJson()
'email' => $this->customerSession->getCustomer()->getEmail(),
'address' => $address
];
} else {
$customer = [
'id' => $order->getCustomerId(),
'first_name' => $order->getCustomerFirstname(),
'email' => $order->getCustomerEmail()
];
}

$currencyCode = $this->_storeManager->getStore()->getCurrentCurrencyCode();
Expand Down

0 comments on commit 30d1961

Please sign in to comment.