Skip to content

Commit 8e273f1

Browse files
committed
MAGETWO-55395: Custom address attribute not appearing on Checkout summary
2 parents 360e381 + ee816e7 commit 8e273f1

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

app/code/Magento/Checkout/view/frontend/web/template/billing-address/details.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
<!-- ko if: (currentBillingAddress().telephone) -->
1414
<a data-bind="text: currentBillingAddress().telephone, attr: {'href': 'tel:' + currentBillingAddress().telephone}"></a>
1515
<!-- /ko --><br/>
16+
<!-- ko foreach: { data: currentBillingAddress().customAttributes, as: 'element' } -->
17+
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
18+
<!-- ko text: element[attribute].value --><!-- /ko -->
19+
<!-- /ko -->
20+
<!-- /ko -->
1621
<button type="button"
1722
class="action action-edit-address"
1823
data-bind="visible: !isAddressSameAsShipping(), click: editAddress">

app/code/Magento/Checkout/view/frontend/web/template/shipping-address/address-renderer/default.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
<!-- ko if: (address().telephone) -->
1414
<a data-bind="text: address().telephone, attr: {'href': 'tel:' + address().telephone}"></a>
1515
<!-- /ko --><br/>
16+
<!-- ko foreach: { data: address().customAttributes, as: 'element' } -->
17+
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
18+
<!-- ko text: element[attribute].value --><!-- /ko -->
19+
<!-- /ko -->
20+
<!-- /ko -->
1621
<!-- ko if: (address().isEditable()) -->
1722
<button type="button"
1823
class="action edit-address-link"

app/code/Magento/Checkout/view/frontend/web/template/shipping-information/address-renderer/default.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@
1313
<!-- ko if: (address().telephone) -->
1414
<a data-bind="text: address().telephone, attr: {'href': 'tel:' + address().telephone}"></a>
1515
<!-- /ko --><br/>
16+
<!-- ko foreach: { data: address().customAttributes, as: 'element' } -->
17+
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
18+
<!-- ko text: element[attribute].value --><!-- /ko -->
19+
<!-- /ko -->
20+
<!-- /ko -->
1621
<!-- /ko -->

0 commit comments

Comments
 (0)