Skip to content

Commit

Permalink
[Framework] Preselected country in the delivery address creating by b…
Browse files Browse the repository at this point in the history
…illing address (#3581)

Co-authored-by: Michal Vanek <michal.vanek@shopsys.com>
  • Loading branch information
AmpMVn and Michal Vanek authored Nov 12, 2024
1 parent 695ad69 commit 24c84d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Model/Customer/DeliveryAddressDataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function createForCustomer(Customer $customer): DeliveryAddressData
{
$deliveryAddressData = $this->createInstance();
$deliveryAddressData->customer = $customer;
$deliveryAddressData->country = $customer->getBillingAddress()->getCountry();

return $deliveryAddressData;
}
Expand Down

0 comments on commit 24c84d9

Please sign in to comment.