开发者

Google Checkout XML API - Float Quantity?

I'm trying to send cart information to Google Checkout using the XML API. My products are sold by tons and partial tons, so sometimes the quantity is 1.5, for ex开发者_JS百科ample. It appears the API only accepts integers for quantities: http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Tag_Reference.html#tag_quantity

Is there any way around this? I'd like to send quantities with decimals (aka a float, not an integer).


You probably want to use item-weight which can be expressed in decimals:

http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Tag_Reference.html#tag_item-weight

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜