File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
app/code/Magento/Checkout/view/frontend/web/template
shipping-address/address-renderer
shipping-information/address-renderer Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 13
13
<!-- ko if: (currentBillingAddress().telephone) -->
14
14
< a data-bind ="text: currentBillingAddress().telephone, attr: {'href': 'tel:' + currentBillingAddress().telephone} "> </ a >
15
15
<!-- /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 -->
16
21
< button type ="button "
17
22
class ="action action-edit-address "
18
23
data-bind ="visible: !isAddressSameAsShipping(), click: editAddress ">
Original file line number Diff line number Diff line change 13
13
<!-- ko if: (address().telephone) -->
14
14
< a data-bind ="text: address().telephone, attr: {'href': 'tel:' + address().telephone} "> </ a >
15
15
<!-- /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 -->
16
21
<!-- ko if: (address().isEditable()) -->
17
22
< button type ="button "
18
23
class ="action edit-address-link "
Original file line number Diff line number Diff line change 13
13
<!-- ko if: (address().telephone) -->
14
14
< a data-bind ="text: address().telephone, attr: {'href': 'tel:' + address().telephone} "> </ a >
15
15
<!-- /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 -->
16
21
<!-- /ko -->
You can’t perform that action at this time.
0 commit comments