@@ -131,7 +131,7 @@ public function getOrdersTrackingCode()
131
131
'quantity': %s
132
132
}); " ,
133
133
$ this ->escapeJs ($ item ->getSku ()),
134
- $ this ->escapeJs ($ item ->getName ()),
134
+ $ this ->escapeJsQuote ($ item ->getName ()),
135
135
$ item ->getPrice (),
136
136
$ item ->getQtyOrdered ()
137
137
);
@@ -146,7 +146,7 @@ public function getOrdersTrackingCode()
146
146
'shipping': '%s'
147
147
}); " ,
148
148
$ order ->getIncrementId (),
149
- $ this ->escapeJs ($ this ->_storeManager ->getStore ()->getFrontendName ()),
149
+ $ this ->escapeJsQuote ($ this ->_storeManager ->getStore ()->getFrontendName ()),
150
150
$ order ->getGrandTotal (),
151
151
$ order ->getTaxAmount (),
152
152
$ order ->getShippingAmount ()
@@ -237,14 +237,14 @@ public function getOrdersTrackingData()
237
237
foreach ($ order ->getAllVisibleItems () as $ item ) {
238
238
$ result ['products ' ][] = [
239
239
'id ' => $ this ->escapeJs ($ item ->getSku ()),
240
- 'name ' => $ this ->escapeJs ($ item ->getName ()),
240
+ 'name ' => $ this ->escapeJsQuote ($ item ->getName ()),
241
241
'price ' => $ item ->getPrice (),
242
242
'quantity ' => $ item ->getQtyOrdered (),
243
243
];
244
244
}
245
245
$ result ['orders ' ][] = [
246
246
'id ' => $ order ->getIncrementId (),
247
- 'affiliation ' => $ this ->escapeJs ($ this ->_storeManager ->getStore ()->getFrontendName ()),
247
+ 'affiliation ' => $ this ->escapeJsQuote ($ this ->_storeManager ->getStore ()->getFrontendName ()),
248
248
'revenue ' => $ order ->getGrandTotal (),
249
249
'tax ' => $ order ->getTaxAmount (),
250
250
'shipping ' => $ order ->getShippingAmount (),
0 commit comments