How can I properly update a specific line item property in my cart?

How can I properly update a specific line item property in my cart?

hazzardt
Excursionist
22 0 4

Been trying to find something which would work but am unable to. I want to update a specific line item property, in my cart. My quantity editor works just fine but this seems to have a different approach. I tried using this piece of code:

"properties" : {"Font": "Arial"}

 

But it seems to replace all the properties with just this one, instead of editing existing "Font" property. What am I missing? Can anyone point me into the rig

Reply 1 (1)

Jason
Shopify Partner
11207 226 2318

Line item properties work with strings, and you're not passing one here. Any reason why you couldn't pass something like "Font:Arial"?

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★