Skip to content

Commit

Permalink
AdressBook Update: add address type to newaddress-option (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
MLindenhofer authored Oct 18, 2023
1 parent c215707 commit 4fa2c53
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 4fa2c53

Please sign in to comment.