From 24c84d9201f81e7744a30ffd79fd4825058eefa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Van=C4=9Bk?= <144789687+AmpMVn@users.noreply.github.com> Date: Tue, 12 Nov 2024 20:38:13 +0100 Subject: [PATCH] [Framework] Preselected country in the delivery address creating by billing address (#3581) Co-authored-by: Michal Vanek --- src/Model/Customer/DeliveryAddressDataFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Model/Customer/DeliveryAddressDataFactory.php b/src/Model/Customer/DeliveryAddressDataFactory.php index 2b1166b911..aa93526939 100644 --- a/src/Model/Customer/DeliveryAddressDataFactory.php +++ b/src/Model/Customer/DeliveryAddressDataFactory.php @@ -42,6 +42,7 @@ public function createForCustomer(Customer $customer): DeliveryAddressData { $deliveryAddressData = $this->createInstance(); $deliveryAddressData->customer = $customer; + $deliveryAddressData->country = $customer->getBillingAddress()->getCountry(); return $deliveryAddressData; }