Shopify POS cart removing lineitem properties automatically!

Shopify POS cart removing lineitem properties automatically!

SADIK112
Shopify Partner
14 0 3

Hi anyone faced the unexpected lineitem properties disappearing from POS cart after adding the properties through the cart API. 

 

 

 

 

var lineItemPayload = {
price: 20,
quantity: 1,
title: 'Bab Low - Blue Jay',
properties: [{ name: 'test', value: 'random properties' }]
}

var unsubscriber = cart.subscribe(Cart.Action.UPDATE, function (payload) {
console.log('[Client] addLineItem', payload);
unsubscriber();
});
cart.dispatch(Cart.Action.ADD_LINE_ITEM, {
data: lineItemPayload
});

 

 

 

 

Replies 0 (0)