We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2709556 commit 151083dCopy full SHA for 151083d
src/plugins/Shopify.js
@@ -262,6 +262,7 @@
262
currentCartItem.quantity += quantity;
263
currentCartItem.keys.push(item.key);
264
265
+ // add any additional information of the item
266
for (let j = 0; j < this.additionalItemData.length; j++) {
267
const itemAttr = this.additionalItemData[j];
268
currentCartItem.additionalData[itemAttr] = item[itemAttr];
@@ -271,6 +272,7 @@
271
272
// nothing to update, this is an invalid result
273
}
274
275
+ // add any requested additional data from the cart instance
276
for (let i = 0; i < this.additionalData.length; i++) {
277
const cartAttr = this.additionalData[i];
278
this.currentCart.additionalData[cartAttr] = data[cartAttr];
0 commit comments