如何在 shopify line_item 上更新属性
How do I update properties on a shopify line_item
如何使用 shopify api 更新特定 line_item 的属性?
似乎没有直接更新特定订单项的方法。
然后我尝试更新整个订单对象,但它似乎没有保存我的属性。如果我使用以下 json 保存订单,api returns 完整订单对象,但我的 line_items.[=12 的属性 [] 行为空=]
{"order":{"id":94202342,"line_items":[{"id":615546756,"variant_id":627937216,"properties":[{"my_test_key":"This_is_a_test"}]}]}}
您可以使用API创建新订单,但不能更新现有订单的订单项。
You should also note that you can change only a few of an order's
attributes using the API. You cannot change the items or the
quantities in an order.
如何使用 shopify api 更新特定 line_item 的属性?
似乎没有直接更新特定订单项的方法。
然后我尝试更新整个订单对象,但它似乎没有保存我的属性。如果我使用以下 json 保存订单,api returns 完整订单对象,但我的 line_items.[=12 的属性 [] 行为空=]
{"order":{"id":94202342,"line_items":[{"id":615546756,"variant_id":627937216,"properties":[{"my_test_key":"This_is_a_test"}]}]}}
您可以使用API创建新订单,但不能更新现有订单的订单项。
You should also note that you can change only a few of an order's attributes using the API. You cannot change the items or the quantities in an order.