Skip to content

Commit 5ba0833

Browse files
committed
MAGETWO-60965: [Backport] - New attribute is not visible when create new address - for 2.0
1 parent 4c879de commit 5ba0833

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313

1414
<!-- ko foreach: { data: currentBillingAddress().customAttributes, as: 'element' } -->
1515
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
16-
<!-- ko text: element[attribute].value --><!-- /ko -->
16+
<!-- ko if: (typeof element[attribute] === "object") -->
17+
<!-- ko text: element[attribute].value --><!-- /ko -->
18+
<!-- /ko -->
19+
20+
<!-- ko if: (typeof element[attribute] === "string") -->
21+
<!-- ko text: element[attribute] --><!-- /ko -->
22+
<!-- /ko --><br/>
1723
<!-- /ko -->
1824
<!-- /ko -->
1925

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313

1414
<!-- ko foreach: { data: address().customAttributes, as: 'element' } -->
1515
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
16-
<!-- ko text: element[attribute].value --><!-- /ko -->
16+
<!-- ko if: (typeof element[attribute] === "object") -->
17+
<!-- ko text: element[attribute].value --><!-- /ko -->
18+
<!-- /ko -->
19+
20+
<!-- ko if: (typeof element[attribute] === "string") -->
21+
<!-- ko text: element[attribute] --><!-- /ko -->
22+
<!-- /ko --><br/>
1723
<!-- /ko -->
1824
<!-- /ko -->
1925

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313

1414
<!-- ko foreach: { data: address().customAttributes, as: 'element' } -->
1515
<!-- ko foreach: { data: Object.keys(element), as: 'attribute' } -->
16-
<!-- ko text: element[attribute].value --><!-- /ko -->
16+
<!-- ko if: (typeof element[attribute] === "object") -->
17+
<!-- ko text: element[attribute].value --><!-- /ko -->
18+
<!-- /ko -->
19+
20+
<!-- ko if: (typeof element[attribute] === "string") -->
21+
<!-- ko text: element[attribute] --><!-- /ko -->
22+
<!-- /ko --><br/>
1723
<!-- /ko -->
1824
<!-- /ko -->
25+
1926
<!-- /ko -->

0 commit comments

Comments
 (0)