Shopify API车 - 更改LINE_ITEM line_price价格覆盖 [英] Shopify API CARTS - Changing line_item line_price for price Override

查看:227
本文介绍了Shopify API车 - 更改LINE_ITEM line_price价格覆盖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Shopify有一个推车API,但它是只读的。我试图找到一种方法来操纵LINE_ITEM的line_price或价格属性。 Shopify支持已经在这里指挥了我一个答案。

Shopify has a CARTS api but it is read-only. I am trying to find a way to manipulate the line_item's line_price or price attribute. Shopify support has directed me here for an answer.

由于没有对这个没有适当的文件有任何帮助将是AP preciated。

Since there is no proper documentation on this any help would be appreciated.

推荐答案

产品也有变种,和行项目有一个产品ID和一个变种标识。一个行项目有价格太高。无论你如何访问该项目(使用AJAX API或后端API),你不能操纵价格。如果你想改变一个价格,你必须改变产品的价格变量。那你做后端API和产品或变体的呼叫。

Products have variants, and a line item has a product ID and a variant ID. A line item has a price too. And no matter how you access that item (using the Ajax API or the backend API) you cannot manipulate the price. If you want to change a price, you have to change the product's variants price. That you do with the backend API and the product or variant calls.

这篇关于Shopify API车 - 更改LINE_ITEM line_price价格覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆