File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
app/code/Magento/Checkout/view/frontend/web/js/model Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ define([
84
84
quoteAddressToFormAddressData : function ( addrs ) {
85
85
var self = this ,
86
86
output = { } ,
87
- streetObject ;
87
+ streetObject ,
88
+ customAttributesObject ;
88
89
89
90
$ . each ( addrs , function ( key ) {
90
91
if ( addrs . hasOwnProperty ( key ) && ! $ . isFunction ( addrs [ key ] ) ) {
@@ -100,6 +101,14 @@ define([
100
101
output . street = streetObject ;
101
102
}
102
103
104
+ if ( $ . isArray ( addrs . customAttributes ) ) {
105
+ customAttributesObject = { } ;
106
+ addrs . customAttributes . forEach ( function ( value , index ) {
107
+ customAttributesObject [ value . attribute_code ] = value . value ;
108
+ } ) ;
109
+ output . custom_attributes = customAttributesObject ;
110
+ }
111
+
103
112
return output ;
104
113
} ,
105
114
You can’t perform that action at this time.
0 commit comments