File tree Expand file tree Collapse file tree 3 files changed +20
-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 +20
-0
lines changed Original file line number Diff line number Diff line change 10
10
<!-- ko text: currentBillingAddress().city --> <!-- /ko --> , <!-- ko text: currentBillingAddress().region --> <!-- /ko --> <!-- ko text: currentBillingAddress().postcode --> <!-- /ko --> < br />
11
11
<!-- ko text: getCountryName(currentBillingAddress().countryId) --> <!-- /ko --> < br />
12
12
<!-- 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
+
13
20
< button type ="button "
14
21
class ="action action-edit-address "
15
22
data-bind ="visible: !isAddressSameAsShipping(), click: editAddress ">
Original file line number Diff line number Diff line change 10
10
<!-- ko text: address().city --> <!-- /ko --> , <!-- ko text: address().region --> <!-- /ko --> <!-- ko text: address().postcode --> <!-- /ko --> < br />
11
11
<!-- ko text: getCountryName(address().countryId) --> <!-- /ko --> < br />
12
12
<!-- 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
+
13
20
<!-- ko if: (address().isEditable()) -->
14
21
< button type ="button "
15
22
class ="action edit-address-link "
Original file line number Diff line number Diff line change 10
10
<!-- ko text: address().city --> <!-- /ko --> , <!-- ko text: address().region --> <!-- /ko --> <!-- ko text: address().postcode --> <!-- /ko --> < br />
11
11
<!-- ko text: getCountryName(address().countryId) --> <!-- /ko --> < br />
12
12
<!-- 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 -->
13
19
<!-- /ko -->
You can’t perform that action at this time.
0 commit comments