Skip to content

Commit 4c879de

Browse files
committed
MAGETWO-58946: [Backport] Custom address attribute not appearing on Checkout summary
1 parent 0d31c3e commit 4c879de

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
<!-- ko text: currentBillingAddress().city --><!-- /ko -->, <!-- ko text: currentBillingAddress().region --><!-- /ko --> <!-- ko text: currentBillingAddress().postcode --><!-- /ko --><br/>
1111
<!-- ko text: getCountryName(currentBillingAddress().countryId) --><!-- /ko --><br/>
1212
<!-- ko text: currentBillingAddress().telephone --><!-- /ko --><br/>
13+
14+
<!-- ko foreach: { data: currentBillingAddress().customAttributes, as: 'element' } -->
15+
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
16+
<!-- ko text: element[attribute].value --><!-- /ko -->
17+
<!-- /ko -->
18+
<!-- /ko -->
19+
1320
<button type="button"
1421
class="action action-edit-address"
1522
data-bind="visible: !isAddressSameAsShipping(), click: editAddress">

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
<!-- ko text: address().city --><!-- /ko -->, <!-- ko text: address().region --><!-- /ko --> <!-- ko text: address().postcode --><!-- /ko --><br/>
1111
<!-- ko text: getCountryName(address().countryId) --><!-- /ko --><br/>
1212
<!-- ko text: address().telephone --><!-- /ko --><br/>
13+
14+
<!-- ko foreach: { data: address().customAttributes, as: 'element' } -->
15+
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
16+
<!-- ko text: element[attribute].value --><!-- /ko -->
17+
<!-- /ko -->
18+
<!-- /ko -->
19+
1320
<!-- ko if: (address().isEditable()) -->
1421
<button type="button"
1522
class="action edit-address-link"

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@
1010
<!-- ko text: address().city --><!-- /ko -->, <!-- ko text: address().region --><!-- /ko --> <!-- ko text: address().postcode --><!-- /ko --><br/>
1111
<!-- ko text: getCountryName(address().countryId) --><!-- /ko --><br/>
1212
<!-- ko text: address().telephone --><!-- /ko --><br/>
13+
14+
<!-- ko foreach: { data: address().customAttributes, as: 'element' } -->
15+
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
16+
<!-- ko text: element[attribute].value --><!-- /ko -->
17+
<!-- /ko -->
18+
<!-- /ko -->
1319
<!-- /ko -->

0 commit comments

Comments
 (0)