Skip to content

Commit

Permalink
add AddressTpe to AddressBooks newaddress option
Browse files Browse the repository at this point in the history
  • Loading branch information
MLindenhofer committed Oct 16, 2023
1 parent f7afd7c commit ee1c5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Checkout/Component/AddressBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getExistingAddressFields()
$member = Security::getCurrentUser();
if ($member && $member->AddressBook()->exists()) {
$addressoptions = $member->AddressBook()->sort('Created', 'DESC')->map('ID', 'toString')->toArray();
$addressoptions['newaddress'] = _t('SilverShop\Model\Address.CreateNewAddress', 'Create new address');
$addressoptions['newaddress'] = _t('SilverShop\Model\Address.CreateNewAddress', 'Create new {AddressType} address', '', ["AddressType" => $this->addresstype]);
$fieldtype = count($addressoptions) > 3 ? DropdownField::class : OptionsetField::class;

$label = _t("SilverShop\Model\Address.Existing{$this->addresstype}Address", "Existing {$this->addresstype} Address");
Expand Down

0 comments on commit ee1c5d7

Please sign in to comment.