@@ -91,14 +91,15 @@ define([
91
91
var productSku = this . variationsComponent ( ) . getProductValue ( 'sku' ) ,
92
92
productPrice = this . variationsComponent ( ) . getProductPrice ( ) ,
93
93
productWeight = this . variationsComponent ( ) . getProductValue ( 'weight' ) ,
94
+ productName = this . variationsComponent ( ) . getProductValue ( 'name' ) ,
94
95
variationsKeys = [ ] ,
95
96
gridExisting = [ ] ,
96
97
gridNew = [ ] ,
97
98
gridDeleted = [ ] ;
98
99
99
100
this . variations = [ ] ;
100
101
_ . each ( variations , function ( options ) {
101
- var product , images , sku , quantity , price , variation ,
102
+ var product , images , sku , name , quantity , price , variation ,
102
103
productId = this . variationsComponent ( ) . getProductIdByOptions ( options ) ;
103
104
104
105
if ( productId ) {
@@ -110,6 +111,9 @@ define([
110
111
sku = productSku + _ . reduce ( options , function ( memo , option ) {
111
112
return memo + '-' + option . label ;
112
113
} , '' ) ;
114
+ name = productName + _ . reduce ( options , function ( memo , option ) {
115
+ return memo + '-' + option . label ;
116
+ } , '' ) ;
113
117
quantity = getSectionValue ( 'quantity' , options ) ;
114
118
115
119
if ( ! quantity && productId ) {
@@ -128,7 +132,7 @@ define([
128
132
options : options ,
129
133
images : images ,
130
134
sku : sku ,
131
- name : sku ,
135
+ name : name ,
132
136
quantity : quantity ,
133
137
price : price ,
134
138
productId : productId ,
0 commit comments